Qt Designer Manual

Calculator Builder Example

Preparation

CalculatorForm Class Definition

CalculatorForm Class Implementation

Calculator Form Example

Preparation

CalculatorForm Class Definition

CalculatorForm Class Implementation

Container Extension Example

The Project File: containerextension.pro

MultiPageWidgetPlugin Class Definition

MultiPageWidgetPlugin Class Implementation

MultiPageWidgetExtensionFactory Class Definition

MultiPageWidgetExtensionFactory Class Implementation

MultiPageWidgetContainerExtension Class Definition

MultiPageWidgetContainerExtension Class Implementation

MultiPageWidget Class Definition

Custom Widget Plugin Example

Preparation

AnalogClock Class Definition and Implementation

AnalogClockPlugin Class Definition

AnalogClockPlugin Implementation

A Quick Start to Qt Designer

Creating Custom Widget Extensions

Extension Types

Creating an Extension

Exposing an Extension to Qt Designer

Creating an Extension Factory

Accessing Qt Designer's Extension Manager

Related Examples

Creating Custom Widgets for Qt Designer

BuildingandInstallingthePlugin

Getting Started

Providing an Interface Description

Notes on the domXml() Function

Plugin Requirements

Creating Well Behaved Widgets

Building and Installing the Plugin

A Simple Plugin

Splitting up the Plugin

Linking the Widget into the Application

Sharing the Widget Using a Library

Using the Plugin with QUiLoader

Related Examples

Creating Main Windows in Qt Designer

CreatingAMenu

CreatingAMenuEntry

TheActionEditor

AddingAnAction

AddingADockWidget

Menus

Creating a Menu

Creating a Menu Entry

Toolbars

Creating and Removing a Toolbar

Adding and Removing Toolbar Buttons

Actions

The Action Editor

Creating an Action

Adding an Action

Dock Widgets

Adding a Dock Widget

Creating and Using Components for Qt Designer

Creating Custom Widget Plugins

Retrieving Access to Qt Designer Components

Creating User Interfaces at Run-Time

Customizing Qt Designer Forms

LayoutFunction

Modifying the Form Settings

Editing Resources with Qt Designer

ResourceFiles

EditResource

UsingResources

Defining a Resource File

Using the Resources

Getting to Know Qt Designer

MainWindow

WidgetBox

Launching Designer

The User Interface

The Concept of Layouts in Qt

Qt Designer

Getting Started

Articles and Guides

API Reference

Qt Designer Manual

Qt Designer

Table of Contents

Qt Designer's Buddy Editing Mode

MakingBuddies

Linking Labels to Buddy Widgets

Removing Buddy Connections

Qt Designer's Editing Modes

Qt Designer's Signals and Slots Editing Mode

HighlightedObjects

MakingAConnection

ConnectingToTheForm

ConnectionEditor

DeletingConnections

Connecting Objects

Editing and Deleting Connections

Qt Designer's Tab Order Editing Mode

Setting the Tab Order

Qt Designer's UI File Format

Qt Designer's Widget Editing Mode

SelectingObjects

ShortcutsForEditing

DragAndDrop

EditingProperties

Editing A Form

The Property Editor

Dynamic Properties

The Object Inspector

Saving, Previewing and Printing Forms in Qt Designer

Viewing the Form's Code

Saving and Printing the Form

Task Menu Extension Example

The Project File: taskmenuextension.pro

TicTacToePlugin Class Definition

TicTacToePlugin Class Implementation

TicTacToeTaskMenuFactory Class Definition

TicTacToeTaskMenuFactory Class Implementation

TicTacToeTaskMenu Class Definition

TicTacToeTaskMenu Class Implementation

TicTacToeDialog Class Definition

TicTacToeDialog Class Implementation

TicTacToe Class Definition

Using Layouts in Qt Designer

InsertingObjectsIntoALayout

LayoutShortcuts

Applying and Breaking Layouts

Setting A Top Level Layout

Horizontal and Vertical Layouts

The Grid Layout

The Form Layout

Splitter Layouts

Shortcut Keys

Using Containers in Qt Designer

Using Custom Widgets with Qt Designer

Handling Custom Widgets

Promoting Widgets

User Defined Custom Widgets

Using Stylesheets with Qt Designer

UsingStylesheets

Using a Designer UI File in Your Application

Compile Time Form Processing

The Direct Approach

The Single Inheritance Approach

Using a Member Variable

Using a Pointer Member Variable

The Multiple Inheritance Approach

Reacting to Language Changes

Run Time Form Processing

The UiTools Approach

Automatic Connections

A Dialog Without Auto-Connect

Widgets and Dialogs with Auto-Connect

World Time Clock Builder Example

Preparation

Loading and Building the Form

World Time Clock Plugin Example

WorldTimeClock Class

WorldTimeClockPlugin Class

The Project File: worldtimeclockplugin.pro

Qt Designer Examples

Qt Designer C++ Classes