qt-interest@trolltech.com
[Top] [All Lists]

Re: get system info

Subject: Re: get system info
From: Dimitri
Date: Wed, 23 Feb 2005 22:32:28 +0100
Hi,

yes,  sth like linux / windows will be ok.

OK, but what information are you interested in?

Do you mean that you need to know wether you're on Windows or Unix? This
can be found at compile-time:
        #if defined(Q_OS_WIN32)
        ...
        #else
        ... // anything not Windows: Unix, Linux, Mac OS, ...
        #endif

--
Dimitri

--
List archive and information: http://lists.trolltech.com/qt-interest/

<Prev in Thread] Current Thread [Next in Thread>