forward use of Q_ENUM
Solved
General and Desktop
-
Hi,
I have an header file that contain various enum declarations (in a namespace). This file is shared between two applications. One is using Qt (the one I work on). The second application does not use Qt (specific hardware).Now, in the application using Qt, I would define the enums with Q_ENUM/Q_ENUM_NS macros. How can I do?
Thanks for your help.
-
Hi,
You would need some ifdefs to disable the Qt part when using that header outside of the application context. Or rather the other way around, enable it when using Qt.
-
-
Hi,
You would need some ifdefs to disable the Qt part when using that header outside of the application context. Or rather the other way around, enable it when using Qt.