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

QDateTime becomes "<unavailable>" when setting QTimeZone

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Done
    • Affects Version/s: Qt Creator 3.5.0-rc1
    • Fix Version/s: Qt Creator 3.5.0
    • Component/s: Debugger
    • Environment:
      Windows 7 64 bit
      Qt 5.4.2, Qt 5.5.0
      MinGW g++ 4.9.1
      gdb 7.8
    • Commits:
      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
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes