QMLプレビューアの例
QWidget::createWindowContainer() を使って、QML とQt Widgets アプリケーションを混在させる方法を示します。
この例では、Qt Quick をウィジェットアプリケーショ ンの中に組み込み、Qt Widgets とQt Quick で異なる UI を統合する方法を示します。これには以下が含まれます:
- ウィジェット間のタブフォーカスQt Quick
- ウィジェット間のドラッグ・アンド・ドロップQt Quick
- 埋め込み QML ファイルで定義されたショートカット
- QML ファイル内にQQuickView を埋め込むQLayout
QWidget::createWindowContainer()も参照してください 。
© 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.