Exemple de prévisualisation QML

Démontre comment combiner QML avec une application Qt Widgets en utilisant QWidget::createWindowContainer().

L'exemple montre comment vous pouvez intégrer Qt Quick dans une application de widgets et comment les différents aspects de l'interface utilisateur s'intègrent entre Qt Widgets et Qt Quick. Cela inclut

  • la focalisation sur les onglets entre les widgets et les applications Qt Quick
  • le glisser-déposer entre les widgets et Qt Quick
  • les raccourcis définis dans le fichier QML intégré.
  • Intégration d'une application QQuickView dans une application QLayout

Exemple de projet @ code.qt.io

Voir aussi 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.