工具範例

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.

補全器範例 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.
迴顯插件範例 此範例展示如何創建 Qt 插件。
I18N 範例 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.
插件和描繪範例 演示如何使用插件擴展 Qt 應用程序。
QRegularExpression 範例 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.
Regular Expressions Example The Regular Expressions (RegExp) 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.
設置編輯器範例 設置編輯器範例展示如何在應用程序中使用 Qt 的標準設置支持,通過提供的編輯器使用戶能夠查看已安裝應用程序設置,並修改那些可以編輯的設置。
樣式插件範例 This example shows how to create a plugin that extends Qt with a new GUI look and feel.
樹模型補全器範例 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 Qt's undo framework in action.
撤消框架範例 This example shows how to implement undo/redo functionality with the Qt undo framework.