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

Editing/highlighting functions get lost when QMAKE_CXXFLAG is defined in certain way

    XMLWordPrintable

Details

    • Windows
    • ae794d5914d37e575fe75510f5ab2b339843da36 (qt-creator/qt-creator/4.14)

    Description

      Qt Creator looses editing functionality such as prediction and highlighting when the following line is added to .pro.

      QMAKE_CXXFLAGS += -D MODULE_NAME=\\\"$${TARGET}$${MY_MODULE}\\\"
      

      Also Qt Creator shows Issues

      and warnings.

      No highliging in mainwindow.cpp

      How to reproduce :
      Use Qt Application example and add the following to .pro and then Run qmake

      QMAKE_CXXFLAGS += -D MODULE_NAME=\\\"$${TARGET}$${MY_MODULE}\\\"
      

      Attachments

        1. QTCBug24985__warnings.png
          295 kB
          Nahomi Gröhn
        2. QTCBug24985_ issues.png
          228 kB
          Nahomi Gröhn
        3. QTCBug24985_ no_highlighting.png
          162 kB
          Nahomi Gröhn
        4. QTCBug24985_ QC4140-beta2.png
          235 kB
          Nahomi Gröhn

        Issue Links

          Activity

            People

              kandeler Christian Kandeler
              nagrohn Nahomi Gröhn (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: