Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Debugging ui's widgets
Qt 6.11 is out! See what's new in the release blog

Debugging ui's widgets

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 777 Views
  • 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.
  • M Offline
    M Offline
    Mark81
    wrote on last edited by
    #1

    When I start a debugging session, and hit a breakpoint, I can see the values of the local variables, but I cannot inspect the ui's widgets. Actualllly the "ui" item has not the arrow to expand and if I try to add an expression like:

    ui->label1->text()
    

    it says "no such value".
    Of course I've compiled in debug mode. Is there something else to enable?

    L.GogsL 1 Reply Last reply
    0
    • M Mark81

      When I start a debugging session, and hit a breakpoint, I can see the values of the local variables, but I cannot inspect the ui's widgets. Actualllly the "ui" item has not the arrow to expand and if I try to add an expression like:

      ui->label1->text()
      

      it says "no such value".
      Of course I've compiled in debug mode. Is there something else to enable?

      L.GogsL Offline
      L.GogsL Offline
      L.Gogs
      wrote on last edited by L.Gogs
      #2

      @Mark81
      Write something like QString Str = ui->label1->text(); and check Str variable

      1 Reply Last reply
      0

      • Login

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