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

QDate, QDateTime and QTime displayed as Integers

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Not Evaluated Not Evaluated
    • Qt Creator 4.1.0-rc1
    • Qt Creator 4.0.3, Qt Creator 4.1.0-beta1
    • Debugger
    • Windows 7 64 bit
      MSVC2013
      Project built with: Qt 5.6.0, Qt 5.7.0
      cdb 6.12

      1. Have these lines in your code:
        QDate date = QDate::currentDate();
        QDateTime dateTime = QDateTime::currentDateTime();
        QTime time = QTime::currentTime();
        
      2. Debug the code and stop at a breakpoint behind these lines.
      3. See the contents of the Locals and Expressions view.
        You'll see something like this:
        		date	2457574	QDate
        			jd	2457574	int64
        		dateTime	1467654300097/0/7200/(null)/28	QDateTime
        			d	class QSharedDataPointer<>	QSharedDataPointer<QDateTimePrivate>
        		time	63900099	QTime
        			mds	63900099	int
        

        This is not helpful at all.

      The debugger should display these time related values in a human-readable format.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            davschul David Schulz
            rlohning Robert Löhning
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes