Qt 帶有現代應用程序用戶,所期望的大量標準 Widget。
還可以開發自己的自定義 Widget 和控件,並使用它們與標準 Widget 一起。
甚至可以為 Widget 提供自定義樣式和主題,用於改變標準 Widget 和適當編寫的自定義 Widget 的外觀。
| 指針式時鍾範例 | 指針式時鍾範例展示如何繪製自定義 Widget 的內容。 |
| 計算器範例 | 範例展示如何使用信號/槽來實現計算器 Widget 功能,及如何使用 QGridLayout 將子級小部件放在柵格中。 |
| 日曆 Widget 範例 | 日曆 Widget 範例展示使用 QCalendarWidget。 |
| 字符映射範例 | 字符映射範例展示如何創建既可以顯示自身內容,又可以響應用戶輸入的自定義 Widget。 |
| 代碼編輯器範例 | 代碼編輯器範例展示如何創建擁有行號和突顯當前行的簡單編輯器。 |
| 數字時鍾範例 | 數字時鍾範例展示如何使用 QLCDNumber 顯示具有類似 LCD 數字的數。 |
| 組框範例 | 組框範例展示如何在 Qt 中使用不同種類的組框。 |
| 圖標範例 | 圖標範例展示 QIcon 如何生成反射圖標狀態、模式及大小的像素圖。 |
| 圖像查看器範例 | 範例展示如何組閤 QLabel 和 QScrollArea 以顯示圖像。 |
| 行編輯範例 | 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. |
| 影片範例 | The Movie example demonstrates how to use QMovie and QLabel to display animations. |
| 塗鴉範例 | The Scribble example shows how to reimplement some of QWidget's event handlers to receive the events generated for the application's widgets. |
| 異形時鍾範例 | The Shaped Clock example shows how to apply a widget mask to a top-level widget to produce a shaped window. |
| 滑塊範例 | The Sliders example shows how to use the different types of sliders available in Qt: QSlider, QScrollBar and QDial. |
| 自鏇框範例 | 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. |
| 樣式錶範例 | 樣式錶範例展示如何使用樣式錶。 |
| 樣式範例 | Styles 範例闡明如何使用 Qt 創建自定義 Widget 繪製樣式,和演示 Qt 的預定義樣式。 |
| 係統托盤圖標範例 | The System Tray Icon example shows how to add an icon with a menu and popup messages to a desktop environment's system tray. |
| 數位闆範例 | 此範例展示如何在 Qt 應用程序中使用 Wacom 數位闆。 |
| 俄羅斯方塊範例 | 俄羅斯方塊範例是經典俄羅斯方塊遊戲的 Qt 版本。 |
| 工具提示範例 | 工具提示範例展示如何為應用程序 Widget 提供靜態和動態工具提示。 |
| 擺動範例 | 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. |
| 窗口標誌範例 | 窗口標誌範例展示如何使用可用於 Qt 的窗口標誌。 |