[Qt-interest] macros for maemo

Carl Snellman carl.snellman at gmail.com
Fri Jun 25 21:12:43 CEST 2010


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