Widget Tools Examples
Qt provides the functionality for autocomplete, Undo/Redo actions, and regular expressions for the Widget-based applications.
The Completer example shows how to provide string-completion facilities for an input widget based on data provided by a model. | |
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. | |
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. | |
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. | |
This example shows how to implement undo/redo functionality with the Qt undo framework. |