macro for Qt Simulator in .pro and source files.
Hello, I just want to know is there are any way to know, that we are building application for Qt Simulator target.
For example, for Maemo5 device in .pro file I can make branch by maemo5 directive:
- maemo5 {
- dosomething
- }
and in the .cpp and .h files I can check by Q_WS_MAEMO_5 macro:
- #if defined(Q_WS_MAEMO_5)
- dothomething
- #endif
But what about Qt Simulator, is there any predefined macro and directive for it?
Surely, I can pass something like “DEFINES+=QT_SIMULATOR” to qmake, and check it in the .pro and sources.
- contains($$DEFINES,"QT_SUMULATOR") {
- doSomething
- }
But it’s not good solution, it’s only workaround.
4 replies
It seems as of now there are only workarounds
Another one is discussed here [discussion.forum.nokia.com].
You must log in to post a reply. Not a member yet? Register here!



