Qt 帶有現代應用程序用戶,所期望的大量標準 Widget。
還可以開發自己的自定義 Widget 和控件,並使用它們與標準 Widget 一起。
甚至可以為 Widget 提供自定義樣式和主題,用於改變標準 Widget 和適當編寫的自定義 Widget 的外觀。
| 指針式時鍾範例展示如何繪製自定義 Widget 的內容。 | |
| 範例展示如何使用信號/槽來實現計算器 Widget 功能,及如何使用 QGridLayout 將子級小部件放在柵格中。 | |
| 日曆 Widget 範例展示使用 QCalendarWidget。 | |
| Shows how to render a textured cube and integrate with QPainter and widgets, using QRhi Qt's 3D API and shading language abstraction layer. | |
| 用於顯示和打印 JSON、文本及 PDF 文件的 Widget 應用程序 | |
| 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 Scribble example shows how to reimplement some of QWidget's event handlers to receive the events generated for the application's widgets. | |
| The Shortcut Editor example shows how to create a basic, read-write hierarchical model to use with Qt's standard view and QKeySequenceEdit classes. For a description of Model/View Programming, see the Model/View Programming overview. | |
| Shows how to render a triangle using QRhi, Qt's 3D API and shading language abstraction layer. | |
| 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. | |
| 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 數位闆。 | |
| 範例展示如何製作具有半透明背景的圓形窗口。 | |
| Widget 圖庫範例展示用於設計 UI 的相關小部件。 | |
| A demonstration of how to embed non-Qt UI elements into Qt applications | |
| 窗口標誌範例展示如何使用可用於 Qt 的窗口標誌。 |