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

member "data" of QVariant not accessible

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • Not Evaluated
    • None
    • Qt Creator 3.0.0, Qt Creator 3.1.0-rc1
    • Debugger
    • Qt 5.2.1
      MinGW g++ 4.8.0
      gdb 7.5.1

    Description

      1. Open a project and configure it with a kit using a MinGW based Qt.
      2. In the project, use the following lines:
        QList<int> list;
        list << 1 << 2 << 3;
        QVariant var;
        var.setValue(list);
        
      3. Set a breakpoint after this lines and let the program run into this breakpoint.
        In Locals and Expressions view, Creator will display "var" and its member "data", but the latter is marked as "not accessible". "list" is being displayed correctly.

      Since Creator correctly detects a QList inside "var", could it display the contents of the list?

      Attachments

        1. another.log
          2 kB
        2. left.log
          2 kB
        3. left.log
          1 kB
        4. right.log
          37 kB
        5. right.log
          32 kB

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: