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
The address book example shows how to use proxy models to display different views onto data from a single model.
android,ios,widgets
widgets/itemviews/addressbook/main.cpp
Demonstrates how affine transformations in QPainter works.
android,widgets
widgets/painting/affine/main.cpp
The Analog Clock example shows how to draw the contents of a custom widget.
android,ios,widgets
widgets/widgets/analogclock/main.cpp
widgets/widgets/analogclock/analogclock.h
widgets/widgets/analogclock/analogclock.cpp
Demonstrates anchor layout in a graphics view scene.
ios,widgets
widgets/graphicsview/anchorlayout/main.cpp
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
Demonstrates how to create basic graphics layout.
ios,widgets
widgets/graphicsview/basicgraphicslayouts/main.cpp
Shows how to use the standard layout managers.
android,ios,widgets
widgets/layouts/basiclayouts/main.cpp
The Basic Sort/Filter Model example illustrates how to use QSortFilterProxyModel to perform basic sorting and filtering.
ios,widgets
widgets/itemviews/basicsortfiltermodel/main.cpp
Demonstrates how to apply graphical effects on items in the view.
ios,widgets
widgets/effects/blurpicker/main.cpp
widgets/effects/blurpicker/blurpicker.h
widgets/effects/blurpicker/blurpicker.cpp
Shows how to arrange child widgets along a border.
android,ios,widgets
widgets/layouts/borderlayout/main.cpp
widgets/layouts/borderlayout/borderlayout.h
widgets/layouts/borderlayout/borderlayout.cpp
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
The Calendar example shows how to create rich text content and display it using a rich text editor.
ios,widgets
widgets/richtext/calendar/main.cpp
The Calendar Widget example shows use of QCalendarWidget.
ios,widgets
widgets/widgets/calendarwidget/main.cpp
The Character Map example shows how to create a custom widget that can both display its own content and respond to user input.
ios,widgets
widgets/widgets/charactermap/main.cpp
The Chart example shows how to create a custom view for the model/view framework.
ios,widgets
widgets/itemviews/chart/main.cpp
The Class Wizard example shows how to implement linear wizards using QWizard.
ios,widgets
widgets/dialogs/classwizard/main.cpp
widgets/dialogs/classwizard/classwizard.h
widgets/dialogs/classwizard/classwizard.cpp
The Code Editor example shows how to create a simple editor that has line numbers and that highlights the current line.
android,ios,widgets
widgets/widgets/codeeditor/main.cpp
widgets/widgets/codeeditor/codeeditor.h
widgets/widgets/codeeditor/codeeditor.cpp
Demonstrates how to animate items on a graphics view.
android,ios,widgets
widgets/graphicsview/collidingmice/main.cpp
This example shows how to create an editor that can be used by a QItemDelegate.
widgets
widgets/itemviews/coloreditorfactory/main.cpp
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
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
Demonstrates how Composition Modes work in QPainter.
widgets
widgets/painting/composition/main.cpp
widgets/painting/composition/composition.h
widgets/painting/composition/composition.cpp
Demonstrates the improved quality that antialiasing and floating point precision gives.
android,ios,widgets
widgets/painting/concentriccircles/main.cpp
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
The Custom Sort/Filter Model example illustrates how to subclass QSortFilterProxyModel to perform advanced sorting and filtering.
ios,widgets
widgets/itemviews/customsortfiltermodel/main.cpp
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
The Digital Clock example shows how to use QLCDNumber to display a number with LCD-like digits.
android,ios,widgets
widgets/widgets/digitalclock/main.cpp
widgets/widgets/digitalclock/digitalclock.h
widgets/widgets/digitalclock/digitalclock.cpp
This example demonstrates the usage of a tree view, and smooth flicking on a touchscreen.
ios,widgets
widgets/itemviews/dirview/main.cpp
The Dock Widgets example shows how to add dock windows to an application. It also shows how to use Qt's rich text engine.
widgets
widgets/mainwindows/dockwidgets/main.cpp
The Drag and Drop Puzzle example demonstrates a way of using the drag and drop system with item view widgets.
widgets
widgets/draganddrop/puzzle/main.cpp
Demonstrates how to drag and drop items in a graphics view.
widgets
widgets/graphicsview/dragdroprobot/main.cpp
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
Illustrates how to drag and drop text between widgets.
ios,widgets
widgets/draganddrop/draggabletext/main.cpp
The example shows how to distinguish the various MIME formats available in a drag and drop operation.
widgets
widgets/draganddrop/dropsite/main.cpp
Shows how to re-orient widgets in running applications.
android,widgets
widgets/layouts/dynamiclayouts/main.cpp
The Easing Curves example shows how to use easing curves to control the speed of an animation.
android,ios,widgets
widgets/animation/easing/main.cpp
This example shows how to create a Qt plugin.
widgets
widgets/tools/echoplugin/echowindow/main.cpp
widgets/tools/echoplugin/plugin/echoplugin.h
widgets/tools/echoplugin/plugin/echoplugin.cpp
This example shows how to implement a simple item-based tree model that can be used with other classes the model/view framework.
android,ios,widgets
widgets/itemviews/editabletreemodel/main.cpp
Demonstrates how to interact with graphical items in a scene.
ios,widgets
widgets/graphicsview/elasticnodes/main.cpp
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.
android,ios,widgets
widgets/widgets/elidedlabel/main.cpp
widgets/widgets/elidedlabel/elidedlabel.h
widgets/widgets/elidedlabel/elidedlabel.cpp
Demonstrates how to embed dialogs into a graphics view.
ios,widgets
widgets/graphicsview/embeddeddialogs/main.cpp
The Extension example shows how to add an extension to a QDialog using the QAbstractButton::toggled() signal and the QWidget::setVisible() slot.
widgets
widgets/dialogs/extension/main.cpp
Demonstrates how to apply effects on items in the view.
android,ios,widgets
widgets/effects/fademessage/main.cpp
widgets/effects/fademessage/fademessage.h
widgets/effects/fademessage/fademessage.cpp
The Fetch More example shows how to add items to an item view model on demand.
widgets
widgets/itemviews/fetchmore/main.cpp
A dialog for finding files in a specified folder.
ios,widgets
widgets/dialogs/findfiles/main.cpp
Shows the use of a touchscreen to make a simple painting application.
widgets
widgets/touch/fingerpaint/main.cpp
Shows how to arrange widgets for different window sizes.
android,ios,widgets
widgets/layouts/flowlayout/main.cpp
widgets/layouts/flowlayout/flowlayout.h
widgets/layouts/flowlayout/flowlayout.cpp
The Font Sampler example shows how to preview and print multi-page documents.
android,ios,widgets
widgets/painting/fontsampler/main.cpp
The Fridge Magnets example illustrates how to move around several types of MIME-encoded data with drag and drop.
ios,widgets
widgets/draganddrop/fridgemagnets/main.cpp
This example demonstrates how to freeze a column within a QTableView.
android,ios,widgets
widgets/itemviews/frozencolumn/main.cpp
A tutorial for Qt Widgets based notepad application.
widgets
widgets/tutorials/notepad/main.cpp
widgets/tutorials/notepad/notepad.h
widgets/tutorials/notepad/notepad.cpp
Shows how gradients can be used with QPainter.
android,ios,widgets
widgets/painting/gradients/main.cpp
widgets/painting/gradients/gradients.h
widgets/painting/gradients/gradients.cpp
Demonstrates flow layout on a graphics view scene.
ios,widgets
widgets/graphicsview/flowlayout/main.cpp
widgets/graphicsview/flowlayout/flowlayout.h
widgets/graphicsview/flowlayout/flowlayout.cpp
The Group Box example shows how to use the different kinds of group boxes in Qt.
android,widgets
widgets/widgets/groupbox/main.cpp
The 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.
widgets
widgets/tools/i18n/main.cpp
The Icons example shows how QIcon can generate pixmaps reflecting an icon's state, mode and size.
widgets
widgets/widgets/icons/main.cpp
Shows how composition modes work in QPainter.
android,ios,widgets
widgets/painting/imagecomposition/main.cpp
Demonstrates the use of simple gestures in a widget.
widgets
widgets/gestures/imagegestures/main.cpp
The example shows how to combine QLabel and QScrollArea to display an image.
widgets
widgets/widgets/imageviewer/main.cpp
widgets/widgets/imageviewer/imageviewer.h
widgets/widgets/imageviewer/imageviewer.cpp
This example demonstrates the usage of the model/view framework.
ios,widgets
widgets/itemviews/interview/main.cpp
The 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.
widgets
widgets/itemviews/puzzle/main.cpp
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
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.
android,ios,widgets
widgets/widgets/lineedits/main.cpp
The MDI example shows how to implement a Multiple Document Interface using Qt's QMdiArea class.
widgets
widgets/mainwindows/mdi/main.cpp
The Main Window example shows Qt's extensive support for tool bars, dock windows, menus, and other standard application features.
widgets
widgets/mainwindows/mainwindow/main.cpp
widgets/mainwindows/mainwindow/mainwindow.h
widgets/mainwindows/mainwindow/mainwindow.cpp
The Menus example demonstrates how menus can be used in a main window application.
widgets
widgets/mainwindows/menus/main.cpp
The '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.
android,widgets
widgets/widgets/mousebuttons/main.cpp
The Movie example demonstrates how to use QMovie and QLabel to display animations.
widgets
widgets/widgets/movie/main.cpp
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
The Painter Paths example shows how painter paths can be used to beuild complex shapes for rendering.
android,ios,widgets
widgets/painting/painterpaths/main.cpp
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.
widgets
widgets/tutorials/addressbook/part1/main.cpp
Describes the code for inserting records in the Address Book Example.
widgets
widgets/tutorials/addressbook/part2/main.cpp
Explains the code that enables navigating the contacts.
widgets
widgets/tutorials/addressbook/part3/main.cpp
Explains how to add edit and remove functionality.
widgets
widgets/tutorials/addressbook/part4/main.cpp
Describes how to add a find function.
widgets
widgets/tutorials/addressbook/part5/main.cpp
Describes how to add save and load functionality.
widgets
widgets/tutorials/addressbook/part6/main.cpp
Describes how to export data in VCard format.
widgets
widgets/tutorials/addressbook/part7/main.cpp
The Path Stroking example shows various types of pens that can be used with QPainter.
android,widgets
widgets/painting/pathstroke/main.cpp
widgets/painting/pathstroke/pathstroke.h
widgets/painting/pathstroke/pathstroke.cpp
Shows how to recognize a gesture.
widgets
widgets/touch/pinchzoom/main.cpp
The Pixelator example shows how delegates can be used to customize the way that items are rendered in standard item views.
android,widgets
widgets/itemviews/pixelator/main.cpp
A plugin providing the basic tools for painting functionality.
widgets
Demonstrates how to extend Qt applications using plugins.
widgets
widgets/tools/plugandpaint/app/main.cpp
A plugin providing the extra filters.
widgets
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
The Application example shows how to implement a standard widget application with menus, toolbars, and a status bar. The example itself is a simple text editor program built around QPlainTextEdit.
widgets
widgets/mainwindows/application/main.cpp
The 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.
android,widgets
widgets/mainwindows/sdi/main.cpp
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
The Scribble example shows how to reimplement some of QWidget's event handlers to receive the events generated for the application's widgets.
android,ios,widgets
widgets/widgets/scribble/main.cpp
The 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.
widgets
widgets/tools/settingseditor/main.cpp
The Shaped Clock example shows how to apply a translucent background and a widget mask to a top-level widget to produce a shaped window.
ios,widgets
widgets/widgets/shapedclock/main.cpp
widgets/widgets/shapedclock/shapedclock.h
widgets/widgets/shapedclock/shapedclock.cpp
Demonstrates anchor layout on a graphics view scene.
ios,widgets
widgets/graphicsview/simpleanchorlayout/main.cpp
The Simple DOM Model example shows how an existing class can be adapted for use with the model/view framework.
widgets
widgets/itemviews/simpledommodel/main.cpp
The Simple Tree Model example shows how to use a hierarchical model with Qt's standard view classes.
android,ios,widgets
widgets/itemviews/simpletreemodel/main.cpp
The Simple Widget Mapper example shows how to use a widget mapper to display data from a model in a collection of widgets.
ios,widgets
widgets/itemviews/simplewidgetmapper/main.cpp
The Sliders example shows how to use the different types of sliders available in Qt: QSlider, QScrollBar and QDial.
android,ios,widgets
widgets/widgets/sliders/main.cpp
The 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.
widgets
widgets/itemviews/spinboxdelegate/main.cpp
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
The Spreadsheet example shows how to create a simple spreadsheet application.
android,widgets
widgets/itemviews/spreadsheet/main.cpp
widgets/itemviews/spreadsheet/spreadsheet.h
widgets/itemviews/spreadsheet/spreadsheet.cpp
The Standard Dialogs example shows the standard dialogs that are provided by Qt.
ios,widgets
widgets/dialogs/standarddialogs/main.cpp
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
This example shows how to create a plugin that extends Qt with a new GUI look and feel.
widgets
widgets/tools/styleplugin/stylewindow/main.cpp
The Style Sheet Example shows how to use style sheets.
widgets
widgets/widgets/stylesheet/main.cpp
The Styles example illustrates how to create custom widget drawing styles using Qt, and demonstrates Qt's predefined styles.
widgets
widgets/widgets/styles/main.cpp
The Syntax Highlighter example shows how to perform simple syntax highlighting.
ios,widgets
widgets/richtext/syntaxhighlighter/main.cpp
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
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
This example shows how to use a Wacom tablet in Qt applications.
widgets
widgets/widgets/tablet/main.cpp
The Tetrix example is a Qt version of the classic Tetrix game.
widgets
widgets/widgets/tetrix/main.cpp
The Text Edit example shows Qt's rich text editing facilities in action.
ios,widgets
widgets/richtext/textedit/main.cpp
widgets/richtext/textedit/textedit.h
widgets/richtext/textedit/textedit.cpp
The Tool Tips example shows how to provide static and dynamic tool tips for an application's widgets.
widgets
widgets/widgets/tooltips/main.cpp
Shows how to apply touch to a set of standard Qt widgets.
android,widgets
widgets/touch/dials/main.cpp
Shows how to create custom controls that accept touch input.
widgets
widgets/touch/knobs/main.cpp
The Transformations example shows how transformations influence the way that QPainter renders graphics primitives.
android,ios,widgets
widgets/painting/transformations/main.cpp
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
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
This example shows Qt's undo framework in action.
android,ios,widgets
widgets/tools/undo/main.cpp
This example shows how to implement undo/redo functionality with the Qt undo framework.
widgets
widgets/tools/undoframework/main.cpp
The Validators example shows the signal emission behavior of input validators.
ios,widgets
widgets/widgets/validators/main.cpp
Demonstrates how to manipulate the elements of a QPainterPath.
android,widgets
widgets/painting/deform/main.cpp
Demonstrates anchor layout on a graphics view scene.
ios,widgets
widgets/graphicsview/weatheranchorlayout/main.cpp
The Widgets Gallery example shows widgets relevant for designing UIs.
gallery,widgets
widgets/gallery/main.cpp
No description available
widgets
widgets/tutorials/widgets/childwidget/main.cpp
No description available
widgets
widgets/tutorials/widgets/toplevel/main.cpp
No description available
widgets
widgets/tutorials/widgets/nestedlayouts/main.cpp
No description available
widgets
widgets/tutorials/widgets/windowlayout/main.cpp
The 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.
android,ios,widgets
widgets/widgets/wiggly/main.cpp
The Window Flags example shows how to use the window flags available in Qt.
ios,widgets
widgets/widgets/windowflags/main.cpp