Qt中判断操作系统版本

版权声明:http://blog.csdn.net/robertkun https://blog.csdn.net/robertkun/article/details/38657161
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

阅读更多
想对作者说点什么?

博主推荐

换一批

没有更多推荐了,返回首页