[Development] Os identification in Qt5
David Faure
david.faure at kdab.com
Thu Jun 21 21:57:31 CEST 2012
On Thursday 21 June 2012 16:51:16 Oleg Shalnev wrote:
> Hello all.
>
> How to identify operation system in Qt5.
> In Qt4 I use Q_OS_LINUX etc.. defines for OS identification
>
> What about this in Qt5.
Q_OS_LINUX and other Q_OS_ defines still exist in Qt5.
What has disappeared is Q_WS_*, which can be replaced with runtime checks on
QGuiApplication::platformName() [for which I just submitted a documentation
improvement].
> and QSysInfo::WordSize for system bits.
Seems to be exactly the same in Qt5. Did you look at global/qsysinfo.h? :-)
--
David Faure | david.faure at kdab.com | KDE/Qt Senior Software Engineer
KDAB (France) S.A.S., a KDAB Group company
Tel. France +33 (0)4 90 84 08 53, Sweden (HQ) +46-563-540090
KDAB - Qt Experts - Platform-independent software solutions
More information about the Development
mailing list