Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
Qt Creator 4.11.0
-
QNX kit with Windows or Linux host
-
-
5a6c625c5e46aef442689a2bc691679da7a562db (qt-creator/qt-creator/6.0)
Description
- create a new application project
- select QNX kit for it
- 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
Issue Links
- is duplicated by
-
QTCREATORBUG-26107 [QNX] The syntax highlighting does not recognize __QNX__ define for QNX toolchain
- Closed
- mentioned in
-
Page Loading...