Qt Widgets Designer Manual

A Quick Start to Qt Widgets Designer

Calculator Builder

Preparation

Loading the Calculator Form

Calculator Form

Preparation

CalculatorForm Class Definition

CalculatorForm Class Implementation

Calculator Form/Multiple Inheritance

CalculatorForm Definition

CalculatorForm Implementation

main() Function

Container Extension Example

Project files

CMake

qmake

MultiPageWidgetPlugin Class Definition

MultiPageWidgetPlugin Class Implementation

MultiPageWidgetExtensionFactory Class Definition

MultiPageWidgetExtensionFactory Class Implementation

MultiPageWidgetContainerExtension Class Definition

MultiPageWidgetContainerExtension Class Implementation

MultiPageWidget Class Definition

Creating Custom Widget Extensions

Extension Types

Creating an Extension

Exposing an Extension to Qt Widgets Designer

Creating an Extension Factory

Accessing Qt Widgets Designer's Extension Manager

Related Examples

Creating Custom Widgets for Qt Widgets 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 Widgets 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 Widgets Designer

Creating Custom Widget Plugins

Retrieving Access to Qt Widgets Designer Components

Creating User Interfaces at Run-Time

Custom Widget Plugin

Preparation

Project files

CMake

qmake

AnalogClock Class Definition and Implementation

AnalogClockPlugin Class Definition

AnalogClockPlugin Implementation

Customizing Qt Widgets Designer Forms

LayoutFunction

Modifying the Form Settings

Editing Resources with Qt Widgets Designer

ResourceFiles

EditResource

UsingResources

Defining a Resource File

Using the Resources

Getting to Know Qt Widgets Designer

MainWindow

WidgetBox

Launching Designer

The User Interface

The Concept of Layouts in Qt

Qt Widgets Designer

Using the Module

Building with CMake

Building with qmake

Articles and Guides

API Reference

Qt Widgets Designer Manual

Qt Widgets Designer

Table of Contents

Qt Widgets Designer's Buddy Editing Mode

MakingBuddies

Linking Labels to Buddy Widgets

Removing Buddy Connections

Qt Widgets Designer's Editing Modes

Qt Widgets Designer's Signals and Slots Editing Mode

HighlightedObjects

MakingAConnection

ConnectingToTheForm

ConnectionEditor

DeletingConnections

Connecting Objects

Editing and Deleting Connections

Qt Widgets Designer's Tab Order Editing Mode

Setting the Tab Order

Qt Widgets Designer's UI File Format

Qt Widgets 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 Widgets Designer

Viewing the Form's Code

Saving and Printing the Form

Task Menu Extension

Project files

CMake

qmake

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 Containers in Qt Widgets Designer

Using Custom Widgets with Qt Widgets Designer

Handling Custom Widgets

Promoting Widgets

User Defined Custom Widgets

Using Layouts in Qt Widgets Designer

InsertingObjectsIntoALayout

LayoutShortcuts

Setting A Top Level Layout

Layout Objects

Inserting Objects Into a Layout

Layout Types

Horizontal and Vertical (Box) Layouts

The Grid Layout

The Form Layout

Splitter Layouts

Shortcut Keys

Using Stylesheets with Qt Widgets Designer

UsingStylesheets

Using a Designer UI File in Your C++ Application

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

Using a Designer UI File in Your Qt for Python Application

Converting the Form to Python Code

The UiTools Approach

Resource imports

Single directory usage

Directory trees

Qt Widgets Designer Examples

Qt Widgets Designer C++ Classes