PDA

View Full Version : Detect platform where my QT4 program is running on



the_bis
14th September 2007, 11:42
How can I detect if my QT4 program is running under Linux or under a Windows platform?

I have to differentiate some QFileDialog pre-settings.

Thank you,
the_bis

jpn
14th September 2007, 12:01
Q_WS_WIN (http://doc.trolltech.com/latest/qtglobal.html#Q_WS_WIN)
Q_WS_X11 (http://doc.trolltech.com/latest/qtglobal.html#Q_WS_X11)