工具范例

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 shows how to provide string-completion facilities for an input widget based on data provided by a model

自定义补全器范例

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

QRegularExpression 范例

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

树模型补全器范例

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