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 | [email protected] | 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 _______________________________________________ Development mailing list [email protected] http://lists.qt-project.org/mailman/listinfo/development
