[Qt-interest] macros for maemo

Constantin Makshin cmakshin at gmail.com
Fri Jun 25 21:49:50 CEST 2010


http://doc.qt.nokia.com/qt-maemo-4.6/winsystem.html

Qt for the Maemo 5 platform
When compiling for this platform, the macro Q_WS_MAEMO_5 is defined.

On Friday 25 June 2010 23:12:43 Carl Snellman wrote:
> Hey,
> 
> what preprocessor macros should I use to compile for maemo platform
> ONLY? (building for maemo using scratchbox)
> 
> I try to make the following working:
> ========
> #if defined(Q_WS_S60) || defined(Q_WS_X11)
>     w.showFullScreen();
> #else
>     w.setGeometry(0, 0, 1024, 700);
>     w.show();
> #endif
> =======
> In above, Q_WS_X11 works for maemo, but also for desktop linux...
> which I don't want to happen.
> I have tried the following: Q_WS_MAEMO, Q_WS_MAEMO5, Q_OS_MAEMO,
> Q_OS_MAEMO5, none worked
> Where should these macros be found in general?
> 
> 
> Thanks,
> Carl



More information about the Qt-interest-old mailing list