Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Qt/QMLで解像度に依存しない測定単位を使用することは可能ですか?
テキスト、ボタン、余白、装飾用の長方形のサイズをデスクトップ (網膜と非網膜)、アンドロイド (dpi、xspi...)、iOS (網膜と非網膜) で等しくしたいと思います。
要素内のすべての親コンポーネントにアクセスできるため、すべての幅/高さを親の高さに基づいて設定できます。例えば
Rectangle { width: parent.width / 2 anchors.centerIn: parent }