Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. QT Creator 12 Debug Locals (ui)
Forum Updated to NodeBB v4.3 + New Features

QT Creator 12 Debug Locals (ui)

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
qt creatordebuglocalsui headerqt 6.6
1 Posts 1 Posters 297 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    Helliarc
    wrote on 30 Nov 2023, 22:33 last edited by Helliarc
    #1

    I am following along with a tutorial @ academy.qt.io (Getting Started With Qt Creator (10 of 12): Debugging(https://www.youtube.com/watch?v=EhJ1eV_6RH8&t=202s&ab_channel=QtGroup)). In the tutorial they access the object locals for the Ui::MainWindow object, but when I try the same, it is like the object doesn't exist in the locals, but I am able to assign the "ui->lineEdit->text()" to the QString variable text.

    Tutorial Locals view:
    55038c45-a2af-4907-81f5-d4ec8e68c62b-image.png

    My Locals view:
    ba2cb64d-c501-4f84-8c5b-485a83fe1655-image.png

    I feel like the compiler is optimizing away the object, since it only contains a QString, so maybe it is a complier flags issue?...

    But I've tried the following solutions:
    "Load system GDB pretty printers" - Didn't do anything...
    "Use Debugging Helpers" - Didn't do anything...
    "Change Value Display Format" - Nothing...
    "Uncheck Shadow Build" - Option not available in QT Creator 12?
    "Delete the Build files and rebuild" - Problem persisted

    I thought that maybe the object didn't exist, but I referenced it again to a new QString AFTER the message box break, and I was able to assign it. I read that the "ui_MainWindow.h" file is generated by QT/CMake(Still not sure how this works), so the file just isn't linked to the debugger, which makes the object un-interpretable by Locals? I find it frustrating that I can't figure this out and I need to move on.

    System: Windows 11
    QT Creator 12
    QT 6.6.0
    CMake

    1 Reply Last reply
    0
    • C Christian Ehrlicher moved this topic from General and Desktop on 1 Dec 2023, 06:32

    1/1

    30 Nov 2023, 22:33

    • Login

    • Login or register to search.
    1 out of 1
    • First post
      1/1
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved