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

gdb does not show elements of MainWindow's ui

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P2: Important
    • None
    • Qt Creator 4.9.0-beta1
    • Debugger
    •  Windows 10 1809 64 bit
      GNU gdb (GDB) 8.1
    • Windows

    Description

      1. Create a new Qt Widgets Application using a MinGW-based kit.
        I used Qt 5.12.1.
      2. Open the project's file "mainwindow.ui"
      3. In Design mode, place a QPushButton in the MainWindow.
      4. Right-click the QPushButton and select "Go to slot..." from the context menu.
      5. Select "clicked()" and click "OK".
      6. Add some code and a breakpoint into the slot.
      7. Start debugging the application and click the QPushButton.
        The breakpoint is being hit.
      8. In the Locals view, expand "this".
        One of it's members is "ui".
      9. Try to expand "ui".
        This does not work. Only the Value and Type of the pointer are shown.

      It should be possible to list the members of the object pointed to by expanding it. With cdb, this seems to work.

      Attachments

        1. left.log
          13 kB
        2. right.log
          84 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes