QML 预览器示例
演示如何使用QWidget::createWindowContainer() 将 QML 与Qt Widgets 应用程序混合。
该示例演示了如何将Qt Quick 嵌入 widgets 应用程序,以及如何在Qt Widgets 和Qt Quick 之间整合不同的用户界面。这包括
- 在部件和应用程序之间进行标签聚焦Qt Quick
- 窗口小部件之间的拖放Qt Quick
- 嵌入式 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.