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

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

私密
私密原因:
请选择设置私密原因
  • 广告
  • 抄袭
  • 版权
  • 政治
  • 色情
  • 无意义
  • 其他
其他原因:
120
出错啦
系统繁忙,请稍后再试