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

QT_GUI_LIB / QT_WIDGETS_LIB handled incorrectly

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P4: Low
    • None
    • Qt Creator 16.0.0
    • C/C++/Obj-C++ Support
    • None
    • All

    Description

      Code implemented in qtesthelpers_p.h is guarded by e.g. QT_GUI_LIB / QT_WIDGETS_LIB. It can be accessed, will be compiled but it's displayed as dead code in Qt Creator.

      A workaround is to add the additional symbols manually:

      In that case, the guarded code is displayed as active, but include resolution doesn't work and leads to bogus syntax errors being displayed:

      Attachments

        1. image-2025-04-11-07-10-53-358.png
          171 kB
          Axel Spoerl
        2. image-2025-04-11-07-11-28-830.png
          94 kB
          Axel Spoerl
        3. screenshot-1.png
          127 kB
          Axel Spoerl
        4. screenshot-2.png
          33 kB
          Axel Spoerl
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            kandeler Christian Kandeler
            axelspoerl Axel Spoerl
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes