PDA

View Full Version : Environment symbol



Doug Broadwell
1st November 2006, 18:18
I'm converting an existing C program to run in the Qt4 environment and I want to conditionally compile parts of it depending upon the target environment (Win32, *NIX, etc.). What are the symbols defined for the different targets?

Thanks.

jpn
1st November 2006, 18:54
Q_WS_WIN (http://doc.trolltech.com/4.2/qtglobal.html#Q_WS_WIN)
Q_WS_X11 (http://doc.trolltech.com/4.2/qtglobal.html#Q_WS_X11)
Q_WS_MAC (http://doc.trolltech.com/4.2/qtglobal.html#Q_WS_MAC)
Q_WS_QWS (http://doc.trolltech.com/4.2/qtglobal.html#Q_WS_QWS)