Obsolete Members for Screen
QML 类型Screen的以下成员已被弃用。提供它们是为了让旧源代码继续工作。我们强烈建议不要在新代码中使用它们。
附加属性
- logicalPixelDensity : real
(deprecated)
附加属性文档
Screen.logicalPixelDensity : real |
该属性已被弃用。我们强烈建议不要在新代码中使用它。
每毫米逻辑像素数。这是平台提供的有效像素密度,用于图像缩放计算。
由于 Qt 支持的各种平台在处理逻辑像素密度方面存在不一致,因此建议使用物理像素(通过pixelDensity
属性)来替代,以实现可移植性。
另请参阅 pixelDensity 。
© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.