Qt 4.8
|
The QSysInfo class provides information about the system. More...
#include <qglobal.h>
Public Types | |
enum | MacVersion { MV_Unknown = 0x0000, MV_9 = 0x0001, MV_10_0 = 0x0002, MV_10_1 = 0x0003, MV_10_2 = 0x0004, MV_10_3 = 0x0005, MV_10_4 = 0x0006, MV_10_5 = 0x0007, MV_10_6 = 0x0008, MV_10_7 = 0x0009, MV_10_8 = 0x000A, MV_10_9 = 0x000B, MV_CHEETAH = MV_10_0, MV_PUMA = MV_10_1, MV_JAGUAR = MV_10_2, MV_PANTHER = MV_10_3, MV_TIGER = MV_10_4, MV_LEOPARD = MV_10_5, MV_SNOWLEOPARD = MV_10_6, MV_LION = MV_10_7, MV_MOUNTAINLION = MV_10_8, MV_MAVERICKS = MV_10_9 } |
This enum provides symbolic names for the various versions of the OS X operating system. More... | |
enum | Sizes { WordSize = (sizeof(void *)<<3) } |
This enum provides platform-specific information about the sizes of data structures used by the underlying architecture. More... | |
enum | WinVersion { WV_32s = 0x0001, WV_95 = 0x0002, WV_98 = 0x0003, WV_Me = 0x0004, WV_DOS_based = 0x000f, WV_NT = 0x0010, WV_2000 = 0x0020, WV_XP = 0x0030, WV_2003 = 0x0040, WV_VISTA = 0x0080, WV_WINDOWS7 = 0x0090, WV_WINDOWS8 = 0x00a0, WV_WINDOWS8_1 = 0x00b0, WV_NT_based = 0x00f0, WV_4_0 = WV_NT, WV_5_0 = WV_2000, WV_5_1 = WV_XP, WV_5_2 = WV_2003, WV_6_0 = WV_VISTA, WV_6_1 = WV_WINDOWS7, WV_6_2 = WV_WINDOWS8, WV_6_3 = WV_WINDOWS8_1, WV_CE = 0x0100, WV_CENET = 0x0200, WV_CE_5 = 0x0300, WV_CE_6 = 0x0400, WV_CE_based = 0x0f00 } |
This enum provides symbolic names for the various versions of the Windows operating system. More... | |
Static Public Functions | |
static WinVersion | windowsVersion () |
Returns the version of the Windows operating system on which the application is run (Windows only). More... | |
Static Public Variables | |
static const MacVersion | MacintoshVersion = macVersion() |
the version of the Macintosh operating system on which the application is run (Mac only). More... | |
static const WinVersion | WindowsVersion |
the version of the Windows operating system on which the application is run (Windows only) More... | |
The QSysInfo class provides information about the system.
Some constants are defined only on certain platforms. You can use the preprocessor symbols Q_WS_WIN and Q_WS_MAC to test that the application is compiled under Windows or Mac.
enum QSysInfo::MacVersion |
This enum provides symbolic names for the various versions of the OS X operating system.
On OS X, the QSysInfo::MacintoshVersion variable gives the version of the system on which the application is run.
Definition at line 1618 of file qglobal.h.
enum QSysInfo::Sizes |
enum QSysInfo::WinVersion |
This enum provides symbolic names for the various versions of the Windows operating system.
On Windows, the QSysInfo::WindowsVersion variable gives the version of the system on which the application is run.
MS-DOS-based versions:
NT-based versions (note that each operating system version is only represented once rather than each Windows edition):
Alternatively, you may use the following macros which correspond directly to the Windows operating system version number:
CE-based versions:
The following masks can be used for testing whether a Windows version is MS-DOS-based, NT-based, or CE-based:
Definition at line 1579 of file qglobal.h.
|
static |
Returns the version of the Windows operating system on which the application is run (Windows only).
Referenced by QSessionManager::cancel(), QSystemLocalePrivate::dayName(), macVersion(), QSystemLocalePrivate::nativeCountryName(), QSystemLocalePrivate::nativeLanguageName(), QSystemTrayIconSys::QSystemTrayIconSys(), QWinInputContext::QWinInputContext(), and QSystemLocalePrivate::uiLanguages().
|
static |
the version of the Macintosh operating system on which the application is run (Mac only).
Definition at line 1646 of file qglobal.h.
Referenced by QFileSystemEngine::canonicalName(), QMacPasteboardMimeTiff::convertFromMime(), QMacStyle::drawComplexControl(), QMacStyle::drawControl(), QCoreGraphicsPaintEnginePrivate::drawPath(), QMacStyle::drawPrimitive(), drawTabShape(), QStatusBar::event(), QFontEngineMac::faceId(), QPixmap::grabWindow(), QMacStyle::hitTestComplexControl(), QMacPasteboardMime::initialize(), initializeDb(), QSslSocketBackendPrivate::initSslContext(), QCocoaColorPanelDelegate::initWithColorPanel:stolenContentView:okButton:cancelButton:priv:, QCocoaFontPanelDelegate::initWithFontPanel:stolenContentView:okButton:cancelButton:priv:extraWidth:extraHeight:, QApplication::isLeftToRight(), QLibraryPrivate::load_sys(), QCoreGraphicsPaintEngine::macGenericColorSpace(), macQueryInternal(), macQuoteString(), macVersion(), QMacPrintEngine::metric(), QMacStyle::polish(), qcolorForTheme(), qMacVersion(), qt_cocoa_change_back_implementation(), qt_cocoa_change_implementation(), qt_mac_clip_cg(), qt_mac_get_scale_factor(), qt_mac_unregister_widget(), qt_mac_update_widget_position(), qt_mac_updateContentBorderMetricts(), QWidgetPrivate::registerDropSite(), registerFont(), QMacCocoaViewContainer::setCocoaView(), setCurrentThreadName(), QMainWindow::setUnifiedTitleAndToolBarOnMac(), QCoreGraphicsPaintEngine::updateCompositionMode(), and QTabBarPrivate::updateMacBorderMetrics().
|
static |
the version of the Windows operating system on which the application is run (Windows only)
Definition at line 1613 of file qglobal.h.
Referenced by QSessionManager::cancel(), QWindowsXPStylePrivate::drawBackgroundThruNativeBuffer(), QWindowsVistaStyle::drawComplexControl(), QFileSystemEngine::fillPermissions(), inputTimerMask(), QApplication::isLeftToRight(), QStyleFactory::keys(), loadEngine(), macVersion(), QFileSystemEngine::owner(), QWhatsThat::paintEvent(), qMacVersion(), qt_alphamapblit_quint32(), qt_reg_winclass(), qt_win_get_existing_directory(), qt_win_get_open_file_names(), QVistaHelper::QVistaHelper(), QWhatsThat::QWhatsThat(), QWindowsStylePrivate::QWindowsStylePrivate(), QWizardPrivate::QWizardPrivate(), QWindowsStyle::standardIconImplementation(), QWindowsStyle::standardPixmap(), QWindowsStyle::styleHint(), QGuiPlatformPlugin::styleName(), QVistaHelper::topOffset(), QVistaHelper::topPadding(), and QWindowsVistaStylePrivate::useVista().