楼主可以查阅下Qt帮助文档 其中有段
platform.os This read-only property contains the name of the operating system.
Possible values are:
"android" - Android
"blackberry" - BlackBerry OS
"ios" - iOS
"linux" - Linux
"osx" - OS X
"unix" - Other Unix-based OS
"windows" - Windows
"wince" - Windows CE
这个是判断平台的 如果是ios平台就可以得到该平台的屏幕尺寸 Screen这个控件
desktopAvailableHeight : int
desktopAvailableWidth : int
height : int
name : string
orientation : Qt::ScreenOrientation
pixelDensity : real
primaryOrientation : Qt::ScreenOrientation
width : int
希望对你有帮助