Introducción a Patrones de Diseño en C++ con Qt4/C.4 Asistente Qt y Diseñador

De Wikilibros, la colección de libros de texto de contenido libre.
Versión para imprimir esta pagina

C.4. Qt Assistant and Designer

[ fromfile: qtdesigner.xml id: qtdesigner ]

Qt comes with two developer's tools: assistant and designer.

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

Designer not only showcases most of Qt's 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, which 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 which 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.


Versión para imprimir esta pagina