Qt中判断操作系统版本

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

阅读更多
版权声明:http://blog.csdn.net/robertkun https://blog.csdn.net/robertkun/article/details/38657161
文章标签: 操作系统
个人分类: Qt
所属专栏: 初识Qt
上一篇自定义QMenu图标大小
下一篇vs加不上断点时, 试试去掉这个选项
想对作者说点什么? 我来说一句

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

关闭
关闭
关闭