PDA

View Full Version : Cross-platforming and Qtopia



Antrax
25th October 2006, 14:27
I need to write code that compiles on a regular OS, and an embedded OS. If it's compiled for the embedded OS, it should run code that is Qtopia-specific, otherwise it's all standard Qt. I'm sure there's a simple define somewhere that tells you if you're compiling with the embedded libraries or not, but I've been unable to find it. What should I #ifdef for to find out if I'm being compiled with Qtopia or with QT/X11?

jpn
25th October 2006, 14:31
Yep, this is defined on Qtopia Core: Q_WS_QWS (http://doc.trolltech.com/4.2/qtglobal.html#Q_WS_QWS).

Antrax
25th October 2006, 15:49
Thankyou. Generally, how does one find such things out? There's no "search" function to Trolltech's online documentation, and reading their code every time to find things like that seems needlessly complex.

jacek
25th October 2006, 16:46
Generally, how does one find such things out? There's no "search" function to Trolltech's online documentation, and reading their code every time to find things like that seems needlessly complex.
You can search the documentation using Qt Assitant or Google (http://www.google.com/search?q=site%3Adoc.trolltech.com+Q_WS_QWS)