Qt Quick Controls - ギャラリー
コントロールのギャラリー。
ウェルカムスクリーン |
サイド・ドロワー |
オプションメニュー |
ギャラリーの例は、ドロワーメニューを持つシンプルなアプリケーションです。 Qt Quick Controls.各メニュー項目は、コントロールのグラフィカルな外観を示すページを開き、コントロールと対話することができ、どのような状況でこのコントロールを使用すると便利かを説明します。
アプリケーションがポートレートモードの場合、ドロワーはインタラクティブなサイドパネルとなり、左端からスワイプして開くことができます。ドロワーはコンテンツの上に表示され、モーダルな背景によってユーザーとのインタラクションを妨げます。アプリケーションがランドスケープモードの場合、ドロワーとコンテンツは横並びにレイアウトされます。
アプリケーションの現在の向きは、ウィンドウの幅と高さ、および設定の向きモードの設定を比較して決定されます:
readonly property bool portraitMode: !orientationCheckBox.checked || window.width < window.height
この例では、組み込みのQt Quick Controls スタイルをすべてサポートしているため、ランタイム スタイルの選択を使用します。
例の実行
から例を実行するには Qt Creatorからサンプルを実行するには、Welcome モードを開き、Examples からサンプルを選択します。詳細については、Building and Running an Exampleを参照してください。
© 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.