Section C.4. Qt Assistant and Designer

Qt comes with two developers tools: assistant and designer.

Assistant is an extensible help browser, similar to a Web browser, but it supports various built-in search and index capabilities.

Designer not only showcases most of Qts widgets, it also permits you to create and lay out customized dialogs and widgets. After you are finished designing your UI, Designer can write the following files for you:

widgetName.ui

An xml file that represents a tree of objects and properties. uic, or the "UI compiler," comes with Qt and generates C++ code from this xml file. uic gets run automatically from make, because qmake generates a Makefile that runs uic on all .ui files in the project.

projectName.pro

Designer can open and manipulate qmake project files, adding forms to the projects.

widgetName.ui.h

C++ source code that is meant to be inserted into generated code by uic.

Qt Assistant provides tutorials for using the latest version of Qt Designer.

Категории

© amp.flylib.com,