Tools Examples

Qt is equipped with a range of capable tool classes, from containers and iterators to classes for string handling and manipulation.

Other classes provide application infrastructure support, handling plugin loading and managing configuration files.

Completer Example

Completer example shows how to provide string-completion facilities for an input widget based on data provided by a model

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

Echo Plugin Example

This example shows how to create a Qt plugin

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

Plug & Paint Example

Demonstrates how to extend Qt applications using plugins

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

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

Style Plugin Example

This example shows how to create a plugin that extends Qt with a new GUI look and feel

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

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

© 2022 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.