Table of Contents
Preface
Introduction
What You Should Know
What's New in Designer?
Feedback
1. Creating a Qt Application
Starting and Exiting Qt Designer
Creating a New Project
Creating a New Form
Adding Widgets
Laying Out Widgets & Previewing
Introduction to Layouts
Laying Out Widgets
Previewing
Changing the Tab Order
Connecting up an Application
Connecting Predefined Signals & Slots
Creating & Connecting Custom Slots
Compiling and Building an Application
2. Creating Main Windows with Actions, Toolbars and Menus
Designing the Main Window
Creating the Main Window
Creating and Deleting Actions and Action Groups
Creating and Populating a Toolbar
Creating Menus
Adding and Connecting the Main Widget
Converting the Design into an Executable Application
Implementing the Main Window's Functionality
Making the Application Run
3. Using Qt Designer's Value Editors
Shared Pixmaps
ListBox and ComboBox
ListView (Tree View)
TextEdit
Table
IconView
4. Subclassing and Dynamic Dialogs
Subclassing
Generating Source Code from Qt Designer .ui Files
Subclassing a Form
A Subclassing Example
Creating Dynamic Dialogs from .ui Files
Creating the Project File
Creating main.cpp
Creating the Main Form
5. Creating Custom Widgets
Simple Custom Widgets
Coding the Custom Widget
Adding the Custom Widget to Qt Designer
Creating Custom Widgets with Plugins
Creating a Custom Widget
Creating a Plugin
6. Creating Database Applications
Setting Up Database Connections
Setting Up Qt Designer's Connections
Setting Up Connections for Applications
Using QDataTable
Quickly Viewing a Database Table
Inserting Records in QDataTables
Relating Two Tables Together (Master-Detail)
Using QDataBrowser and QDataView
Drilling Down to a Form using QDataBrowser
7. Customizing and Integrating Qt Designer
Customizing Qt Designer
Qt Designer's Code Editor
Creating and Using Templates
Simple Templates
Base-class Templates
Integrating Qt Designer with Visual Studio
Creating Makefiles without qmake
Importing Foreign File Formats
Importing Qt Architect Files
Importing Glade Files
8. Menus And Toolbars
The File Menu
The Edit Menu
The Tools Menu
The Layout Menu
The Preview Menu
The Window Menu
The Help Menu
9. The Dialogs
The About Dialog
The Connection Editor Dialog (Edit Connections)
The Connection Viewer Dialog (View Connections)
The Edit Custom Widgets Dialog
The Definitions Tab Page
The Signals Tab Page
The Slots Tab Page
The Properties Tab Page
The Edit Icon View Dialog
The Edit List Box Dialog
The Edit List View Dialog
The Items Tab Page
The Columns Tab Page
The Edit Multiline Edit Dialog
The Edit Slots Dialog
The Form Settings Dialog
The Help Dialog
Contents tab page
Index tab page
Bookmarks tab page
The New Form Dialog
The Palette Editor Dialog
The Pixmap Function Dialog
The Preferences Dialog
The Topic Chooser Dialog
10. The Key Bindings
List of Figures
1. Qt Designer
1-1. The Multiclip Application
2-1. The Richedit Application
3-1. Edit Pixmap Collection Dialog
3-2. Edit List Box Dialog
3-3. Edit List View Dialog
3-4. Text Dialog
3-5. Edit Table Dialog
3-6. Edit Iconview Dialog
5-1. The FileChooser Custom Widget
6-1. The Book Application
6-2. Database Connections Dialog
6-3. Edit Table Dialog
6-4. The Book Application's Edit Books Dialog
9-1. The About dialog
9-2. The connection editor dialog
9-3. The connection viewer dialog
9-4. The custom widgets dialog
9-5. The icon view editor
9-6. The list box editor
9-7. The list view editor
9-8. The multiline editor
9-9. The edit slots dialog
9-10. The form settings dialog
9-11. The help dialog
9-12. The new form dialog
9-13. The palette editor
9-14. The preferences dialog
9-15. The topic chooser dialog
List of Examples
5-1. From qt/tools/designer/eg/filechooser/plugin/plugin.h
5-2. qt/tools/designer/eg/filechooser/plugin/plugin.pro
6-1. Schema CREATE TABLE Statements
6-2. createConnections() function
6-3. From qt/tools/designer/eg/book/book1/main.cpp