QML Previewer Beispiel
Zeigt, wie man QML mit einer Qt Widgets Anwendung unter Verwendung von QWidget::createWindowContainer() mischt.
Das Beispiel zeigt, wie Sie Qt Quick in eine Widgets-Anwendung einbetten können und wie verschiedene UI-Aspekte zwischen Qt Widgets und Qt Quick integriert werden. Dies beinhaltet:
- Tab-Fokussierung zwischen Widgets und Qt Quick
- Drag and Drop zwischen Widgets und Qt Quick
- Shortcuts, die in der eingebetteten QML-Datei definiert sind
- Einbetten einer QQuickView in ein QLayout
Siehe auch 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.