[Solved] Standard #defines
Hi, I have searched in the documentation but I have not found a list of all those defines useful when parts of the application should have a different behavior if symbian, Harmattan, destkop etc.
To be clear here is an example (found copying another example) of what I mean:
Someone knows if there is a specific doc or a list of them?
The operating system, must be one of: (Q_OS_x)
DARWIN - Darwin OS (synonym for Q_OS_MAC) SYMBIAN - Symbian MSDOS - MS-DOS and Windows OS2 - OS/2 OS2EMX - XFree86 on OS/2 (not PM) WIN32 - Win32 (Windows 2000/XP/Vista/7 and Windows Server 2003/2008) WINCE - WinCE (Windows CE 5.0) CYGWIN - Cygwin SOLARIS - Sun Solaris HPUX - HP-UX ULTRIX - DEC Ultrix LINUX - Linux FREEBSD - FreeBSD NETBSD - NetBSD OPENBSD - OpenBSD BSDI - BSD/OS IRIX - SGI Irix OSF - HP Tru64 UNIX SCO - SCO OpenServer 5 UNIXWARE - UnixWare 7, Open UNIX 8 AIX - AIX HURD - GNU Hurd DGUX - DG/UX RELIANT - Reliant UNIX DYNIX - DYNIX/ptx QNX - QNX QNX6 - QNX RTP 6.1 LYNX - LynxOS BSD4 - Any BSD 4.4 system UNIX - Any UNIX BSD/SYSV system
Fast and precise :) You saved a lot of time to me today, be happy ...
Where is in the sources this and other system includes (I suppose ?)
I grabbed it from the repository at http://qt.gitorious.org/qt/qt/blobs/master/src/corelib/global/qglobal.h
I'd say the ".../src/corelib/global/" part is the most apropos to most snapshots, etc.
lgeyer last edited by
They "are":http://doc.qt.nokia.com/latest/qtglobal.html#Q_OS_AIX in the docs as well.
my problem was that I had no idea of what to search (i.e. qglobal.h) ... :(
goetz last edited by
[quote author="Alicemirror" date="1315331970"]Thank Lukas,
my problem was that I had no idea of what to search (i.e. qglobal.h) ... :([/quote]
Qt Assistant provides nice index and search functions for that cases ;-) Just type Q_OS_SYMBIAN into the index and you will be thrown to the page that lists all other OSes.
Hi, Volker thank you again. The fact is that I recently (from the Qt 4.7.3 supporting Harmattan and the further updates up to the recent Qt creator 2.3 and Qt 4.7.4 that I have updatet two days ago) have lost the habit to see the index and use mostly the search opton because the documentation is continuously updating and there are a lot of "page not found". Then the Index seems not yet complete so when I see if something exist in the Index option it is not rare that I can't find it (and I am sure that there is) while I find in search...
But the version updates seems going to best so I wait. BTW, thanks to all. It was a silly problem but it saved to me a lot of time.
goetz last edited by
Ah, I see. And unfortunately the search in the DevNet docs gives no helpful matches in the first results :-/
Yep, but in the devnet there is a good set of human "living" doc resources before the self destruction :D
[quote author="Alicemirror" date="1315340499"]Yep, but in the devnet there is a good set of human "living" doc resources before the self destruction :D[/quote]
Indeed. Although, fortunately, my self destruction is progressing slowly.
Mine too. I have no any prevision to became an x-file (or Qt-file) before next 40 years...