Obsolete Members for Screen

The following members of QML type Screen 已過時。 提供它們是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它們。

附加特性

附加特性文檔編製

[read-only] Screen.logicalPixelDensity : real

The number of logical pixels per millimeter. This is the effective pixel density provided by the platform to use in image scaling calculations.

Due to inconsistencies in how logical pixel density is handled across the various platforms Qt supports, it is recommended to use physical pixels instead (via the pixelDensity property) for portability.

該 QML 特性在 Qt 5.1 引入。

另請參閱 pixelDensity .