[Qt-interest] macros for maemo
Constantin Makshin
cmakshin at gmail.com
Sat Jun 26 02:57:13 CEST 2010
Qt for Maemo resides in the separate repository at
http://qt.gitorious.org/+qt-developers/qt/x11-maemo
On Saturday 26 June 2010 00:45:08 Carl Snellman wrote:
> Thanks Constantin,
>
> but unfortunately that does not work. :(
> Does anyone know where these macros should be found?
>
> Btw, I'm running on maemo (and scratchbox) qt 4.7 libs compiled from
> master git (cloned 20100616). Could the problem be somewhere in there?
>
> Thanks,
> Carl
>
> On Fri, Jun 25, 2010 at 12:49 PM, Constantin Makshin <cmakshin at gmail.com> wrote:
> > 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