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. How to make Visual Studio evaluate Qt expressions?
Forum Updated to NodeBB v4.3 + New Features

How to make Visual Studio evaluate Qt expressions?

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
2 Posts 2 Posters 294 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.
  • C Offline
    C Offline
    Christiian
    wrote on last edited by
    #1

    Whatever Qt expression i try to evaluate while debugging on Visual Studio 2022 doesnt work, for example:

    5d011f70-9098-48bd-8def-c2da4ffdd35f-image.png

    1. Conditional breakpoints with Qt expressions doesnt work.
    2. Any Qt expression on watch window always: Function QWidget::height has no address, possibly due to compiler optimizations.

    I'm on Debug mode, i also tried:

    C/C++ > Optimization -> Optimization -> Disabled /Od

    And also all options here:

    316fb1b1-ee66-4e2d-bfa3-9839c6daf8a2-image.png

    I'm using Qt 6.6, VS22 latest version available today.

    1 Reply Last reply
    0
    • Christian EhrlicherC Christian Ehrlicher moved this topic from General and Desktop on
    • S Offline
      S Offline
      SimonSchroeder
      wrote on last edited by
      #2

      I am not entirely sure what your problem is in this case. However, for general use of Qt in VS: Do you have the natvis debug helpers installed (https://wiki.qt.io/IDE_Debug_Helpers)?

      What might be the case with your problem is that you don't have debug symbols for Qt installed. My guess is that maybe you need to install the Qt source using the online installer. Though I'm not entirely sure about that.

      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