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

Wrong values in QMap<int, int>

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3: Somewhat important P3: Somewhat important
    • Qt Creator 17.0.0-beta1
    • Qt Creator 15.0.0
    • Debugger
    • None
    • macOS
    • caf06b1a3 (master), 4be9df0a5 (16.0)

      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:

       

        For Gerrit Dashboard: QTCREATORBUG-32309
        # Subject Branch Project Status CR V

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes