Obsolete Members for Screen
QML 类型Screen的以下成员已被废弃。提供这些成员是为了确保旧源代码能够继续运行。我们强烈建议不要在新代码中使用它们。
附加属性
- logicalPixelDensity : real
(deprecated)
随附的房产文件
Screen.logicalPixelDensity : real [read-only attached, deprecated]
此属性已弃用。我们强烈建议不要在新代码中使用它。
每毫米的逻辑像素数。这是平台提供的有效像素密度,用于图像缩放计算。
由于 Qt 支持的各个平台在处理逻辑像素密度方面存在不一致,为了确保可移植性,建议改用物理像素(通过pixelDensity 属性)。
另请参阅 pixelDensity 。
© 2026 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.