Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-14853

QDateTime becomes "<unavailable>" when setting QTimeZone

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • Qt Creator 3.5.0
    • Qt Creator 3.5.0-rc1
    • Debugger
    • Windows 7 64 bit
      Qt 5.4.2, Qt 5.5.0
      MinGW g++ 4.9.1
      gdb 7.8
    • 884be5128f8f7904fc2751ad7ab738b73906b0f4

    Description

      1. Stop at a breakpoint in the last line of the following code:
            QDateTime x = QDateTime::currentDateTime();
            QTimeZone tz("UTC+05:00");
            x.setTimeZone(tz);
        

        This is a simplified version of testLongEvaluation1() in simple.pro.
        Both x and tz are displayed correctly in Locals and Expressions view.

      2. Step forward.
        x becomes "<unavailable>".

      Creator should still display a value for x after setting the timezone.

      Attachments

        1. left.log
          3 kB
        2. right.log
          33 kB

        Activity

          People

            hjk hjk
            rlohning Robert Löhning
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: