Visualizes a huge graphic view scene with 40000 chip items.
ios,widgets
widgets/graphicsview/chip/main.cpp
widgets/graphicsview/chip/chip.h
widgets/graphicsview/chip/chip.cpp
Graphics
The address book example shows how to use proxy models to display different views onto data from a single model.
ios,widgets
widgets/itemviews/addressbook/main.cpp
User Interface Components
Demonstrates how affine transformations in QPainter work.
widgets
widgets/painting/affine/main.cpp
Graphics
The Analog Clock example shows how to draw the contents of a custom widget.
ios,widgets
widgets/widgets/analogclock/main.cpp
widgets/widgets/analogclock/analogclock.h
widgets/widgets/analogclock/analogclock.cpp
Graphics
The Basic Drawing example shows how to display basic graphics primitives in a variety of styles using the QPainter class.
ios,widgets
widgets/painting/basicdrawing/main.cpp
Graphics
Demonstrates how to create basic graphics layout.
ios,widgets
widgets/graphicsview/basicgraphicslayouts/main.cpp
Graphics
Shows how to use the standard layout managers.
ios,widgets
widgets/layouts/basiclayouts/main.cpp
User Interface Components
The Basic Sort/Filter Model example illustrates how to use QSortFilterProxyModel to perform basic sorting and filtering.
ios,widgets
widgets/itemviews/basicsortfiltermodel/main.cpp
User Interface Components
The 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.
ios,widgets
widgets/widgets/calculator/main.cpp
widgets/widgets/calculator/calculator.h
widgets/widgets/calculator/calculator.cpp
User Interface Components
The Calendar Widget example shows use of QCalendarWidget.
ios,widgets
widgets/widgets/calendarwidget/main.cpp
User Interface Components
Demonstrates how to animate items on a graphics view.
ios,widgets
widgets/graphicsview/collidingmice/main.cpp
Graphics
The Combo Widget Mapper example shows how to use a custom delegate to map information from a model to specific widgets on a form.
widgets
widgets/itemviews/combowidgetmapper/main.cpp
User Interface Components
The Completer example shows how to provide string-completion facilities for an input widget based on data provided by a model.
ios,widgets
widgets/tools/completer/main.cpp
User Interface Components
Demonstrates how Composition Modes work in QPainter.
widgets
widgets/painting/composition/main.cpp
widgets/painting/composition/composition.h
widgets/painting/composition/composition.cpp
Graphics
Shows how to render a textured cube and integrate with QPainter and widgets, using QRhi Qt's 3D API and shading language abstraction layer.
widgets
widgets/rhi/cuberhiwidget/main.cpp
Graphics
The 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.
ios,widgets
widgets/tools/customcompleter/main.cpp
User Interface Components
The Custom Sort/Filter Model example illustrates how to subclass QSortFilterProxyModel to perform advanced sorting and filtering.
ios,widgets
widgets/itemviews/customsortfiltermodel/main.cpp
User Interface Components
Demonstrate how to use the Graphics View framework.
ios,widgets
widgets/graphicsview/diagramscene/main.cpp
widgets/graphicsview/diagramscene/diagramscene.h
widgets/graphicsview/diagramscene/diagramscene.cpp
Graphics
Demonstrates how to drag and drop items in a graphics view.
widgets
widgets/graphicsview/dragdroprobot/main.cpp
Graphics
The Draggable Icons example shows how to drag and drop image data between widgets in the same application, and between different applications.
widgets
widgets/draganddrop/draggableicons/main.cpp
User Interface Components
Illustrates how to drag and drop text between widgets.
ios,widgets
widgets/draganddrop/draggabletext/main.cpp
User Interface Components
The example shows how to distinguish the various MIME formats available in a drag and drop operation.
widgets
widgets/draganddrop/dropsite/main.cpp
User Interface Components
The Easing Curves example shows how to use easing curves to control the speed of an animation.
ios,widgets
widgets/animation/easing/main.cpp
Graphics
This example shows how to implement a simple item-based tree model that can be used with other classes in the model/view framework.
ios,widgets
widgets/itemviews/editabletreemodel/main.cpp
User Interface Components
Demonstrates how to interact with graphical items in a scene.
ios,widgets
widgets/graphicsview/elasticnodes/main.cpp
Graphics
The Fetch More example shows how to add items to an item view model on demand.
widgets
widgets/itemviews/fetchmore/main.cpp
User Interface Components
Shows how to arrange widgets for different window sizes.
ios,widgets
widgets/layouts/flowlayout/main.cpp
widgets/layouts/flowlayout/flowlayout.h
widgets/layouts/flowlayout/flowlayout.cpp
User Interface Components
This example demonstrates how to freeze a column within a QTableView.
ios,widgets
widgets/itemviews/frozencolumn/main.cpp
User Interface Components
A tutorial for Qt Widgets based notepad application.
widgets
widgets/tutorials/notepad/main.cpp
widgets/tutorials/notepad/notepad.h
widgets/tutorials/notepad/notepad.cpp
User Interface Components
Shows how gradients can be used with QPainter.
ios,widgets
widgets/painting/gradients/main.cpp
widgets/painting/gradients/gradients.h
widgets/painting/gradients/gradients.cpp
Graphics
Shows how composition modes work in QPainter.
ios,widgets
widgets/painting/imagecomposition/main.cpp
Graphics
Demonstrates the use of simple gestures in a widget.
widgets
widgets/gestures/imagegestures/main.cpp
User Interface Components
The License Wizard example shows how to implement complex wizards in Qt.
ios,widgets
widgets/dialogs/licensewizard/main.cpp
widgets/dialogs/licensewizard/licensewizard.h
widgets/dialogs/licensewizard/licensewizard.cpp
User Interface Components
The 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.
ios,widgets
widgets/widgets/lineedits/main.cpp
User Interface Components
The Menus example demonstrates how menus can be used in a main window application.
widgets
widgets/mainwindows/menus/main.cpp
User Interface Components
The Order Form example shows how to generate rich text documents by combining a simple template with data input by the user in a dialog.
ios,widgets
widgets/richtext/orderform/main.cpp
User Interface Components
The Painter Paths example shows how to use painter paths to build complex shapes for rendering.
ios,widgets
widgets/painting/painterpaths/main.cpp
Graphics
The Path Stroking example shows various types of pens that can be used with QPainter.
widgets
widgets/painting/pathstroke/main.cpp
widgets/painting/pathstroke/pathstroke.h
widgets/painting/pathstroke/pathstroke.cpp
Graphics
The 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.
widgets
widgets/tools/regularexpression/main.cpp
User Interface Components
The Scribble example shows how to reimplement some of QWidget's event handlers to receive the events generated for the application's widgets.
ios,widgets
widgets/widgets/scribble/main.cpp
User Interface Components
The Shortcut Editor example shows how to create a basic, read-write hierarchical model to use with Qt's standard view and QKeySequenceEdit classes. For a description of Model/View Programming, see the Model/View Programming overview.
widgets
widgets/widgets/shortcuteditor/main.cpp
User Interface Components
Demonstrates anchor layout on a graphics view scene.
ios,widgets
widgets/graphicsview/simpleanchorlayout/main.cpp
Graphics
Shows how to render a triangle using QRhi, Qt's 3D API and shading language abstraction layer.
widgets
widgets/rhi/simplerhiwidget/main.cpp
Graphics
The Simple Tree Model example shows how to use a hierarchical model with Qt's standard view classes.
ios,widgets
widgets/itemviews/simpletreemodel/main.cpp
User Interface Components
The Sliders example shows how to use the different types of sliders available in Qt: QSlider, QScrollBar and QDial.
ios,widgets
widgets/widgets/sliders/main.cpp
User Interface Components
The 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.
widgets
widgets/widgets/spinboxes/main.cpp
User Interface Components
The Spreadsheet example shows how to create a simple spreadsheet application.
widgets
widgets/itemviews/spreadsheet/main.cpp
widgets/itemviews/spreadsheet/spreadsheet.h
widgets/itemviews/spreadsheet/spreadsheet.cpp
User Interface Components
The Standard Dialogs example shows the standard dialogs that are provided by Qt.
ios,widgets
widgets/dialogs/standarddialogs/main.cpp
User Interface Components
The Star Delegate example shows how to create a delegate that can paint itself and that supports editing.
widgets
widgets/itemviews/stardelegate/main.cpp
widgets/itemviews/stardelegate/stardelegate.h
widgets/itemviews/stardelegate/stardelegate.cpp
User Interface Components
The Syntax Highlighter example shows how to perform simple syntax highlighting.
ios,widgets
widgets/richtext/syntaxhighlighter/main.cpp
User Interface Components
The System Tray Icon example shows how to add an icon with a menu and popup messages to a desktop environment's system tray.
widgets
widgets/desktop/systray/main.cpp
Desktop
The Tab Dialog example shows how to construct a tab dialog using the QTabWidget class.
ios,widgets
widgets/dialogs/tabdialog/main.cpp
widgets/dialogs/tabdialog/tabdialog.h
widgets/dialogs/tabdialog/tabdialog.cpp
User Interface Components
This example shows how to use a Wacom tablet in Qt applications.
widgets
widgets/widgets/tablet/main.cpp
User Interface Components
The Screenshot example shows how to take a screenshot of the desktop.
widgets
widgets/desktop/screenshot/main.cpp
widgets/desktop/screenshot/screenshot.h
widgets/desktop/screenshot/screenshot.cpp
Desktop
Shows how to create custom controls that accept touch input.
widgets
widgets/touch/knobs/main.cpp
User Interface Components
The Transformations example shows how transformations influence the way that QPainter renders graphics primitives.
ios,widgets
widgets/painting/transformations/main.cpp
Graphics
The example shows how to make a round window with a translucent background.
widgets
widgets/widgets/shapedclock/main.cpp
widgets/widgets/shapedclock/shapedclock.h
widgets/widgets/shapedclock/shapedclock.cpp
User Interface Components
The 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.
widgets
widgets/tools/treemodelcompleter/main.cpp
widgets/tools/treemodelcompleter/treemodelcompleter.h
widgets/tools/treemodelcompleter/treemodelcompleter.cpp
User Interface Components
The Trivial Wizard example illustrates how to create a linear three-page registration wizard using three instances of QWizardPage and one instance of QWizard.
ios,widgets
widgets/dialogs/trivialwizard/trivialwizard.cpp
User Interface Components
This example shows how to implement undo/redo functionality with the Qt undo framework.
widgets
widgets/tools/undoframework/main.cpp
Data Processing & I/O
Demonstrates how to manipulate the elements of a QPainterPath.
widgets
widgets/painting/deform/main.cpp
Graphics
The Widgets Gallery example shows widgets relevant for designing UIs.
gallery,widgets
widgets/gallery/main.cpp
User Interface Components
No description available
widgets
widgets/tutorials/widgets/childwidget/main.cpp
User Interface Components
No description available
widgets
widgets/tutorials/widgets/toplevel/main.cpp
User Interface Components
No description available
widgets
widgets/tutorials/widgets/nestedlayouts/main.cpp
User Interface Components
No description available
widgets
widgets/tutorials/widgets/windowlayout/main.cpp
User Interface Components
The Window Flags example shows how to use the window flags available in Qt.
ios,widgets
widgets/widgets/windowflags/main.cpp
User Interface Components