PDA

View Full Version : detect current system



timmu
12th August 2012, 05:22
What is the best way to detect the operating system? My program needs to know it the computer is Windows, Mac, or Linux.

Thanks.

ChrisW67
12th August 2012, 08:18
At compile time or run time?

Macros in the Global Qt Declarations for use at compile time
QSysInfo for runtime information.

timmu
13th August 2012, 07:38
The program need to find out about the current system at run time.