The following members of QML type Screen 被弃用。 提供它们是为使旧源代码能继续工作。强烈建议不要在新代码中使用它们。
(deprecated)
[read-only, since 5.1] Screen.logicalPixelDensity : real |
This property is deprecated. We strongly advise against using it in new code.
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.
该特性在 Qt 5.1 引入。
另请参阅 pixelDensity .