The Visual Studio add-in lets you launchQt designerSimply by double-clicking on. UIFile. SeeQt designerManual} for more information.
To add a new. UIFile to the project, selectProject | add new itemAnd then selectQt widget formOrQt dialog formTemplate fromQt project itemsFolder.
Normally, you will need to wrap the code generated for the form file into a qwidget subclass to add signals or slots to it. A convenient way to do this is to selectProject | add classAnd then selectQt4guiclassFromQt4classesFolder. This will create. UIFile,. HFile, and. CppFile for you.
Creating form templates
You can add customized form templates by following these steps:
- Create a form inQt designerAnd save. UIFile (e.g.Mydialog. UI).
- CopyMydialog. UIToUiitems \Directory within the QT Visual Studio add-in installation directory.
- Create an icon file namedMydialog. ICO. It shoshould have a size of 32x32 pixels.
After the next start of Visual Studio you can add new forms using your custom template.