Qt 帶有現代應用程序用戶,所期望的大量標準 Widget。
還可以開發自己的自定義 Widget 和控件,並使用它們與標準 Widget 一起。
甚至可以為 Widget 提供自定義樣式和主題,用於改變標準 Widget 和適當編寫的自定義 Widget 的外觀。
| 指針式時鍾範例展示如何繪製自定義 Widget 的內容。 | |
| 範例展示如何使用信號/槽來實現計算器 Widget 功能,及如何使用 QGridLayout 將子級小部件放在柵格中。 | |
| 日曆 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 translucent background and 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 提供靜態和動態工具提示。 | |
| Widget 圖庫範例展示用於設計 UI 的相關小部件。 | |
| 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 的窗口標誌。 |