Hello,
I want my application to behaviour differently when it is runned in simulator and device.
If there any way to do that?
Thanks
Hai
Hello,
I want my application to behaviour differently when it is runned in simulator and device.
If there any way to do that?
Thanks
Hai
Hi
You didnot specified anything more about your problem.
But generally using macros you can achieve that ..
#ifdef SIMULATIOR
//do something for simulator
#elseif
//do something else for the target device
#endif
Br,
Gokul
http://gokulkartha.blogspot.com
Q_WS_SIMULATOR is defined when a simulator compilation is performed. Q_WS_MAEMO_5 or equivalent is defined when you build for the real device.
lyhoanghai (20th October 2010)
Thanks wysota.
A quick search for Q_WS_SIMULATOR constants leads me to this page with more detail:
http://wiki.forum.nokia.com/index.ph...iate_platforms
Bookmarks