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

Q_OS_QNX is not recognized by codemodel

    XMLWordPrintable

Details

    • Linux/X11, Windows
    • 5a6c625c5e46aef442689a2bc691679da7a562db (qt-creator/qt-creator/6.0)

    Description

      1. create a new application project
      2. select QNX kit for it
      3. add the code bellow to main.cpp
         
        #ifdef Q_OS_QNX 
            qDebug("qnx");
        #endif
        

      Result: the code is grayed out
      Expected result: the code is not grayed out

      Workaround: add qnx: DEFINES+=Q_OS_QNX to the pro file
      Note: code model inspector doesn't show the Q_OS_QNX, the code above builds and prints qnx on qnx.

      Attachments

        1. cmi.png
          cmi.png
          44 kB
        2. Defines_Tab_QNX.PNG
          Defines_Tab_QNX.PNG
          23 kB
        3. main_defines_jay.PNG
          main_defines_jay.PNG
          20 kB
        4. main_defines_win_jay.PNG
          main_defines_win_jay.PNG
          22 kB
        5. mkspecs.PNG
          mkspecs.PNG
          42 kB
        6. qtcreator-6-qnx710.png
          qtcreator-6-qnx710.png
          37 kB
        7. Screenshot from 2020-01-16 17-44-49.png
          Screenshot from 2020-01-16 17-44-49.png
          361 kB
        8. Screenshot from 2020-01-16 17-45-16.png
          Screenshot from 2020-01-16 17-45-16.png
          294 kB

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              cadam Cristian Adam
              karimpinter Karim Pinter
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes