MacVersion QSysInfo::macVersion() [static]
Returns the version of Mac OS X on which the application is run (Mac OS X Only).
WinVersion QSysInfo::windowsVersion() [static]
Returns the version of the Windows operating system on which the application is run (Windows only).
This function was introduced in QtCore 4.4.
例:
QSysInfo::windowsVersion() == QSysInfo::WV_6_0

本文详细解析了QSysInfo中的macVersion()和windowsVersion()函数,用于获取运行应用程序的操作系统版本。适用于MacOS和Windows环境,介绍了这两个函数的使用方法及示例。
511





