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

Q_OS_QNX is not recognized by codemodel

    XMLWordPrintable

    Details

    • Platform/s:
      Linux/X11, Windows

      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. Screenshot from 2020-01-16 17-44-49.png
          Screenshot from 2020-01-16 17-44-49.png
          361 kB
        7. Screenshot from 2020-01-16 17-45-16.png
          Screenshot from 2020-01-16 17-45-16.png
          294 kB
        For Gerrit Dashboard: QTCREATORBUG-23483
        # Subject Branch Project Status CR V

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            karimpinter Karim Pinter
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There is 1 open Gerrit change