PDA

View Full Version : Which defines to use for which platform Q_OS_ ...



hubbobubbo
1st June 2010, 11:42
Hi

Could someone assist in clarifying which macros I should use to handle platforma specific things. I want to be able to handle:

1. Windows CE - Currently using Q_OS_WINCE_WM
2. Symbian - Which define should I use for Symbian. There are some softbutton things that seems to be Symbian specific.
3. A desktop environment - Currently only using Win32, are there Qt defines that covers Mac, Linux etc that I can combine or do I have to use native defines like Win32 and combine them.

Lykurg
1st June 2010, 11:58
Q_OS_SYMBIAN, Q_OS_UNIX, Q_OS_SOLARIS, Q_OS_LINUX, Q_OS_FREEBSD, Q_OS_MAC etc etc.

Q_OS_foo for platform stuff Q_CC_bar for compiler stuff.