Address Book Example |
Address book example shows how to use proxy models to display different views onto data from a single model |
Affine Transformations |
Demonstrates how affine transformations in QPainter works |
Analog Clock Example |
Analog Clock example shows how to draw the contents of a custom widget |
Anchor Layout Example |
Demonstrates anchor layout in a graphics view scene |
Animated Tiles Example |
Animated Tiles example animates items in a graphics scene |
Application Example |
Application example shows how to implement a standard GUI application with menus, toolbars, and a status bar. The example itself is a simple text editor program built around QPlainTextEdit |
Basic Drawing Example |
Basic Drawing example shows how to display basic graphics primitives in a variety of styles using the QPainter class |
Basic Graphics Layouts Example |
Demonstrates how to create basic graphics layout |
Basic Layouts Example |
Shows how to use the standard layout managers |
Basic Sort/Filter Model Example |
Basic Sort/Filter Model example illustrates how to use QSortFilterProxyModel to perform basic sorting and filtering |
Blur Picker Effect Example |
Demonstrates how to apply graphical effects on items in the view |
Border Layout Example |
Shows how to arrange child widgets along a border |
Boxes |
Combines advanced OpenGL rendering with the Graphics View framework |
Calculator Example |
Example shows how to use signals and slots to implement the functionality of a calculator widget, and how to use QGridLayout to place child widgets in a grid |
Calendar Example |
Calendar example shows how to create rich text content and display it using a rich text editor |
Calendar Widget Example |
Calendar Widget example shows use of QCalendarWidget |
Character Map Example |
Character Map example shows how to create a custom widget that can both display its own content and respond to user input |
Chart Example |
Chart example shows how to create a custom view for the model/view framework |
Class Wizard Example |
Class Wizard example shows how to implement linear wizards using QWizard |
Code Editor Example |
Code Editor example shows how to create a simple editor that has line numbers and that highlights the current line |
Colliding Mice Example |
Demonstrates how to animate items on a graphics view |
Color Editor Factory Example |
This example shows how to create an editor that can be used by a QItemDelegate |
Combo Widget Mapper Example |
Combo Widget Mapper example shows how to use a custom delegate to map information from a model to specific widgets on a form |
Completer Example |
Completer example shows how to provide string-completion facilities for an input widget based on data provided by a model |
Composition Modes |
Demonstrates how Composition Modes work in QPainter |
Concentric Circles Example |
Demonstrates the improved quality that antialiasing and floating point precision gives |
Custom Completer Example |
Custom Completer example shows how to provide string-completion facilities for an input widget based on data provided by a model. The completer pops up suggestions for possible words based on the first three characters input by the user and the user's choice of word is inserted into the TextEdit using QTextCursor |
Custom Sort/Filter Model Example |
Custom Sort/Filter Model example illustrates how to subclass QSortFilterProxyModel to perform advanced sorting and filtering |
Diagram Scene Example |
Demonstrate how to use the Graphics View framework |
Digital Clock Example |
Digital Clock example shows how to use QLCDNumber to display a number with LCD-like digits |
Dir View Example |
This example demonstrates the usage of a tree view, and smooth flicking on a touchscreen |
Dock Widgets Example |
Dock Widgets example shows how to add dock windows to an application. It also shows how to use Qt's rich text engine |
Drag and Drop Puzzle Example |
Drag and Drop Puzzle example demonstrates a way of using the drag and drop system with item view widgets |
Drag and Drop Robot Example |
Demonstrates how to drag and drop items in a graphics view |
Draggable Icons Example |
Draggable Icons example shows how to drag and drop image data between widgets in the same application, and between different applications |
Draggable Text Example |
Illustrates how to drag and drop text between widgets |
Drop Site Example |
Example shows how to distinguish the various MIME formats available in a drag and drop operation |
Dynamic Layouts Example |
Shows how to re-orient widgets in running applications |
Easing Curves Example |
Easing Curves example shows how to use easing curves to control the speed of an animation |
Echo Plugin Example |
This example shows how to create a Qt plugin |
Editable Tree Model Example |
This example shows how to implement a simple item-based tree model that can be used with other classes the model/view framework |
Elastic Nodes Example |
Demonstrates how to interact with graphical items in a scene |
Elided Label Example |
This example creates a widget similar to QLabel, that elides the last visible line, if the text is too long to fit the widget's geometry |
Embedded Dialogs |
Demonstrates how to embed dialogs into a graphics view |
Event Transitions Example |
Event Transitions example shows how to use event transitions, a feature of The State Machine Framework |
Extension Example |
Extension example shows how to add an extension to a QDialog using the QAbstractButton::toggled() signal and the QWidget::setVisible() slot |
Factorial States Example |
Factorial States example shows how to use The State Machine Framework to calculate the factorial of an integer |
Fade Message Effect Example |
Demonstrates how to apply effects on items in the view |
Fetch More Example |
Fetch More example shows how to add items to an item view model on demand |
Find Files Example |
A dialog for finding files in a specified folder |
Finger Paint Example |
Shows the use of a touchscreen to make a simple painting application |
Flow Layout Example |
Shows how to arrange widgets for different window sizes |
Font Sampler Example |
Font Sampler example shows how to preview and print multi-page documents |
Fridge Magnets Example |
Fridge Magnets example illustrates how to move around several types of MIME-encoded data with drag and drop |
Frozen Column Example |
This example demonstrates how to freeze a column within a QTableView |
Getting Started Programming with Qt Widgets |
A tutorial for Qt Widgets based on a notepad application |
Gradients |
Shows how gradients can be used with QPainter |
Graphics View Flow Layout Example |
Demonstrates flow layout on a graphics view scene |
Group Box Example |
Group Box example shows how to use the different kinds of group boxes in Qt |
I18N Example |
Internationalization (I18N) example demonstrates Qt's support for translated text. Developers can write the initial application text in one language, and translations can be provided later without any modifications to the code. It also demonstrates how to detect the system language settings and show the UI in the appropriate language |
Icons Example |
Icons example shows how QIcon can generate pixmaps reflecting an icon's state, mode and size |
Image Composition Example |
Shows how composition modes work in QPainter |
Image Gestures Example |
Demonstrates the use of simple gestures in a widget |
Image Viewer Example |
Example shows how to combine QLabel and QScrollArea to display an image |
Interview |
This example demonstrates the usage of the model/view framework |
Item Views Puzzle Example |
Puzzle example shows how to enable drag and drop with a custom model to allow items to be transferred between a view and another widget |
License Wizard Example |
License Wizard example shows how to implement complex wizards in Qt |
Line Edits Example |
Line Edits example demonstrates the many ways that QLineEdit can be used, and shows the effects of various properties and validators on the input and output supplied by the user |
MDI Example |
MDI example shows how to implement a Multiple Document Interface using Qt's QMdiArea class |
Main Window |
Main Window example shows Qt's extensive support for tool bars, dock windows, menus, and other standard application features |
Menus Example |
Menus example demonstrates how menus can be used in a main window application |
Mouse Button Tester |
'Mouse Button Tester' example demonstrates how to reimplement mouse events within a custom class. You can also use this program to verify that Qt is actually receiving mouse events from your mouse |
Move Blocks Example |
Move Blocks example shows how to animate items in a QGraphicsScene using a QStateMachine with a custom transition |
Movie Example |
Movie example demonstrates how to use QMovie and QLabel to display animations |
Order Form Example |
Order Form example shows how to generate rich text documents by combining a simple template with data input by the user in a dialog |
Pad Navigator Example |
Demonstrates how to create animated user interface |
Painter Paths Example |
Painter Paths example shows how painter paths can be used to beuild complex shapes for rendering |
Part 1 - Designing the User Interface |
Describes how to code the user interface of the Address Book Example. This first part covers the design of the basic graphical user interface (GUI) for our address book application |
Part 2 - Adding Addresses |
Describes the code for inserting records in the Address Book Example |
Part 3 - Navigating between Entries |
Explains the code that enables navigating the contacts |
Part 4 - Editing and Removing Addresses |
Explains how to add edit and remove functionality |
Part 5 - Adding a Find Function |
Describes how to add a find function |
Part 6 - Loading and Saving |
Describes how to add save and load functionality |
Part 7 - Additional Features |
Describes how to export data in VCard format |
Path Stroking |
Path Stroking example shows various types of pens that can be used with QPainter |
Pinch Zoom Example |
Shows how to recognize a gesture |
Ping Pong States Example |
Ping Pong States example shows how to use parallel states together with custom events and transitions in The State Machine Framework |
Pixelator Example |
Pixelator example shows how delegates can be used to customize the way that items are rendered in standard item views |
Plug & Paint Basic Tools Example |
A plugin providing the basic tools for painting functionality |
Plug & Paint Example |
Demonstrates how to extend Qt applications using plugins |
Plug & Paint Extra Filters Example |
A plugin providing the extra filters |
QRegularExpression Example |
QRegularExpression example shows how regular expressions in Qt are applied to text by providing an environment in which new regular expressions can be created and tested on custom text strings |
Regular Expressions Example |
Regular Expressions (RegExp) example shows how regular expressions in Qt are applied to text by providing an environment in which new regular expressions can be created and tested on custom text strings |
Rogue Example |
Rogue example shows how to use the Qt state machine for event handling |
SDI Example |
SDI example shows how to create a Single Document Interface. It uses a number of top-level windows to display the contents of different text files |
Screenshot Example |
Screenshot example shows how to take a screenshot of the desktop |
Scribble Example |
Scribble example shows how to reimplement some of QWidget's event handlers to receive the events generated for the application's widgets |
Settings Editor Example |
Settings Editor example shows how Qt's standard settings support is used in an application by providing an editor that enables the user to view the settings for installed applications, and modify those that can be edited |
Shaped Clock Example |
Shaped Clock example shows how to apply a translucent background and a widget mask to a top-level widget to produce a shaped window |
Simple Anchor Layout Example |
Demonstrates anchor layout on a graphics view scene |
Simple DOM Model Example |
Simple DOM Model example shows how an existing class can be adapted for use with the model/view framework |
Simple Tree Model Example |
Simple Tree Model example shows how to use a hierarchical model with Qt's standard view classes |
Simple Widget Mapper Example |
Simple Widget Mapper example shows how to use a widget mapper to display data from a model in a collection of widgets |
Sliders Example |
Sliders example shows how to use the different types of sliders available in Qt: QSlider, QScrollBar and QDial |
Spin Box Delegate Example |
Spin Box Delegate example shows how to create an editor for a custom delegate in the model/view framework by reusing a standard Qt editor widget |
Spin Boxes Example |
Spin Boxes example shows how to use the many different types of spin boxes available in Qt, from a simple QSpinBox widget to more complex editors like the QDateTimeEdit widget |
Spreadsheet |
Spreadsheet example shows how to create a simple spreadsheet application |
Standard Dialogs Example |
Standard Dialogs example shows the standard dialogs that are provided by Qt |
Star Delegate Example |
Star Delegate example shows how to create a delegate that can paint itself and that supports editing |
States Example |
States example shows how to use the Qt state machine to play animations |
Stickman Example |
Stickman example shows how to animate transitions in a state machine to implement key frame animations |
Style Plugin Example |
This example shows how to create a plugin that extends Qt with a new GUI look and feel |
Style Sheet Example |
Style Sheet Example shows how to use style sheets |
Styles Example |
Styles example illustrates how to create custom widget drawing styles using Qt, and demonstrates Qt's predefined styles |
Sub-Attaq |
This example shows Qt's ability to combine the animation framework and the state machine framework to create a game |
Syntax Highlighter Example |
Syntax Highlighter example shows how to perform simple syntax highlighting |
System Tray Icon Example |
System Tray Icon example shows how to add an icon with a menu and popup messages to a desktop environment's system tray |
Tab Dialog Example |
Tab Dialog example shows how to construct a tab dialog using the QTabWidget class |
Tablet Example |
This example shows how to use a Wacom tablet in Qt applications |
Tetrix Example |
Tetrix example is a Qt version of the classic Tetrix game |
Text Codecs Example |
How to import and export text using text codecs |
Text Edit |
Text Edit example shows Qt's rich text editing facilities in action |
Tool Tips Example |
Tool Tips example shows how to provide static and dynamic tool tips for an application's widgets |
Touch Dials Example |
Shows how to apply touch to a set of standard Qt widgets |
Touch Knobs Example |
Shows how to create custom controls that accept touch input |
Traffic Light Example |
Traffic Light example shows how to use The State Machine Framework to implement the control flow of a traffic light |
Transformations Example |
Transformations example shows how transformations influence the way that QPainter renders graphics primitives |
Tree Model Completer Example |
Tree Model Completer example shows how to provide completion facilities for a hierarchical model, using a period as the separator to access Child, GrandChild and GrandGrandChild level objects |
Trivial Wizard Example |
Trivial Wizard example illustrates how to create a linear three-page registration wizard using three instances of QWizardPage and one instance of QWizard |
Two-way Button Example |
Two-way button example shows how to use The State Machine Framework to implement a simple state machine that toggles the current state when a button is clicked |
Undo Framework |
This example shows Qt's undo framework in action |
Undo Framework Example |
This example shows how to implement undo/redo functionality with the Qt undo framework |
Validators Example |
Validators example shows the signal emission behavior of input validators |
Vector Deformation |
Demonstrates how to manipulate the elements of a QPainterPath |
Weather Anchor Layout Example |
Demonstrates anchor layout on a graphics view scene |
Widgets Gallery Example |
Widgets Gallery example shows widgets relevant for designing UIs |
Widgets Tutorial - Child Widgets |
|
Widgets Tutorial - Creating a Window |
|
Widgets Tutorial - Nested Layouts |
|
Widgets Tutorial - Using Layouts |
|
Wiggly Example |
Wiggly example shows how to animate a widget using QBasicTimer and timerEvent(). In addition, the example demonstrates how to use QFontMetrics to determine the size of text on screen |
Window Flags Example |
Window Flags example shows how to use the window flags available in Qt |