Obsolete Members for Screen

QML型Screenの以下のメンバは非推奨です。これらは古いソースコードの動作を維持するために提供されています。新しいコードでは使用しないことを強くお勧めします。

付属プロパティ

Attached Property ドキュメンテーション

Screen.logicalPixelDensity : real [read-only, deprecated]

このプロパティは非推奨です。新しいコードでは使用しないことを強くお勧めします。

1ミリメートルあたりの論理ピクセル数。これは、画像のスケーリング計算で使用するためにプラットフォームによって提供される有効なピクセル密度です。

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.