Home

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

Adding Form Files to the Project

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

To add a new .ui file to the project, click Project|Add New Item and 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 click Project|Add Qt GUI Class. This will create a .ui file, a .h file, and a .cpp file.

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


Copyright © 2007 Trolltech Trademarks
Qt