[Previous: Managing Projects] [Contents] [Next: Managing Resources]

Adding Form Files to the Project

The Qt Designer form editor is integrated in to the Visual Studio IDE. Properties of Qt widgets can be set with the standard Visual Studio property browser. Qt Designer has its own toolbox, object inspector and action editor, all accessible through the Qt menu. See the Qt Designer manual} for more information.

To add a new .ui file to the project, select Project|Add New Item and then select the Qt Widget Form or the Qt Dialog Form template from the Qt Project Items folder.

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 select Project|Add Qt GUI Class. This will create a .ui file, a .h file, and a .cpp file for you.

[Previous: Managing Projects] [Contents] [Next: Managing Resources]


Copyright © 2008 Trolltech Trademarks
Qt 1.4