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

Wrong values in QMap<int, int>

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • Qt Creator 15.0.0
    • Debugger
    • None
    • macOS
    • caf06b1a3 (master), 4be9df0a5 (16.0)

    Description

      Debug the program:

      #include <QMap>
       
      int main(int argc, char* argv[]) {     
        QMap<int, int> map;     
        map[1] = 2;     
        map[3] = 4;     
        return 0; // break 
      }

      When the breakpoint is reached examine map children in the debugger UI. 

      Map entry keys show values and values are zero:

       

      Attachments

        Issue Links

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

          Activity

            People

              hjk hjk
              neverov2 Dmitrii Neverov
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes