Fichiers

Utilisez les modèles de fichiers pour ajouter des fichiers aux projets.

Allez sur Project > Add New Item > Installed > Visual C++ > Qt.

Boîte de dialogue Ajouter un nouvel élément

ModèleAjoute
Qt .runsettings FileUn fichier Qt .runsettings à un projet d'application Qt Test.
Qt ClassUne classe Qt à un projet d'application.
Qt Dialog Form File (Button Bottom)Une boîte de dialogue avec des boutons OK et Cancel au bas d'un projet d'application Qt Widgets.
Qt Dialog Form File (Button Right)Une boîte de dialogue avec des boutons sur le bord droit dans un projet d'application Qt Widgets.
Qt MainWindow Form FileUn fichier de formulaire dans un projet d'application Qt Widgets.
Qt QML FileUn type QML personnalisé dans un projet d'application Qt Quick.
Qt QML Module DefinitionUn fichier qmldir qui spécifie les types QML personnalisés utilisés dans un projet d'application Qt Quick.
Qt Resource FileUn fichier de ressources Qt (.qrc) pour un projet d'application.
Qt Translation FileUn fichier de traduction Qt (.ts) pour un projet d'application.
Qt Widget Form FileUn fichier de formulaire Qt Widgets (.ui) pour un projet d'application.
Qt Widgets ClassUne classe Qt Widgets dans un projet d'application Qt Widgets.

Les rubriques suivantes décrivent comment ajouter différents types de fichiers aux projets :

Les tutoriels d'application contiennent des exemples d'utilisation de modèles de fichiers pour ajouter des fichiers aux projets :

Voir aussi Projets.

© 2026 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.