Qt 提供一批代碼樣本和教程,以幫助新用戶入門 Qt 開發。這些文檔涵蓋一係列話題、從 Widget 的基本用法到分步教程,以展示如何把應用程序拼湊在一起。
|
Calqlatr
|
A Qt Quick app designed for landscape and portrait devices that uses custom components, responsive layouts, and JavaScript for the application logic.
|
|
汽車配置器
|
A car model example that demonstrates using Qt Quick 3D cameras, extended scene environment and Qt Quick 3D.
|
|
咖啡機
|
具有基於狀態的自定義用戶界麵的 Qt Quick 應用程序。
|
|
Dice
|
A dice throwing application using Qt Quick 3D Physics and other Qt Modules.
|
|
文檔查看器
|
用於顯示和打印 JSON、文本及 PDF 文件的 Widget 應用程序。
|
|
FX & 材質展廳
|
Demonstrates material and effects capabilities of Qt Quick 3D. This example demonstrates how you can use particle effects and materials in Qt Quick 3D.
|
|
文件係統資源管理器
|
A desktop QML app utilizing customized Qt Quick Controls to display text files from a filesystem
|
|
采用 Qt Quick 快速入門編程
|
基於鬧鍾應用程序的 Qt Quick 教程。
|
|
Lightning Viewer
|
An application with a responsive UI showing lightning strikes on a map in real-time by combining Qt Quick, Qt Location, Qt Positioning and Qt Websockets.
|
|
媒體播放器
|
使用 Qt Quick 播放音頻和視頻。
|
|
照片錶麵
|
A QML app for touch devices that uses a Repeater with a FolderListModel to access content in a folder, and a PinchHandler to handle pinch gestures on the fetched content.
|
|
Qt Quick 演示 - RESTful API 客戶端
|
如何創建 RESTful API QML 客戶端的範例。
|
|
機器臂
|
Demonstrates how to add a C++ backend to a 3D project from Qt Design Studio.
|
|
相同遊戲
|
Kuniaki Moribe 流行益智遊戲的 QML 實現。
|
|
衛星信息
|
Satellite Info example shows the available satellites using Sky View, Table View, or RSSI View and the user's current position. It is implemented with Qt Positioning and Qt Quick
|
|
Thermostat
|
A user interface for a home thermostat, implemented in Qt Quick. It demonstrates how to create responsive applications that scale from large desktop displays to mobile and small embedded displays.
|
|
待辦列錶
|
A QML implementation of a to-do list application that demonstrates how to create an application thats looks native on any platform.
|
|
WebEngine Quick 納米瀏覽器
|
A web browser implemented using the WebEngineView QML type
|
|
窗口嵌入
|
A demonstration of how to embed non-Qt UI elements into Qt applications.
|
|
咖啡機
|
具有基於狀態的自定義用戶界麵的 Qt Quick 應用程序。
|
|
Custom Extension
|
Custom Extension shows how to implement a custom Wayland extension
|
|
自定義 Shell
|
Custom Shell shows how to implement a custom shell extension
|
|
Fancy Compositor
|
Fancy Compositor is an example that demonstrates how to write a fancy Wayland compositor in pure QML
|
|
IVI Compositor
|
IVI Compositor is an example that demonstrates how to use the IviApplication extension
|
|
Minimal CPP
|
Minimal CPP is an example that demonstrates how to write a Wayland compositor in C++
|
|
Minimal QML
|
Minimal QML is a simple example that demonstrates how to write a Wayland compositor in QML
|
|
Multi Output
|
Multi Output is an example that demonstrates a compositor with multiple outputs
|
|
Multi Screen
|
Multi Screen is a desktop-style Wayland compositor for multiple screens
|
|
Overview Compositor
|
Overview Compositor shows how to switch between clients in a grid
|
|
Qt Quick Controls - 可穿戴演示
|
Demonstrates an application launcher designed for wearable devices
|
|
QtShell Compositor
|
QtShell Compositor shows how to use the QtShell shell extension
|
|
Server Side Decoration Compositor
|
Server Side Decoration Compositor is a simple example that demonstrates server side window decorations on xdg-shell
|
|
Spanning Screens
|
Spanning Screens is an example that demonstrates how to let Wayland clients span multiple screens
|
|
Thermostat
|
A user interface for a home thermostat, implemented in Qt Quick. It demonstrates how to create responsive applications that scale from large desktop displays to mobile and small embedded displays.
|
|
Qt Quick 虛擬鍵盤
|
This example shows how to use the virtual keyboard in a Qt Quick application
|
|
Audio Samples vs Sound Level
|
This example shows the drawing of microphone samples vs audio level
|
|
Axis Handling
|
Implementing axis dragging with a custom input handler in QML, and creating a custom axis formatter
|
|
Charts with QML Gallery
|
Demonstrates how to use the different chart types by using qml
|
|
Charts with Widgets Gallery
|
An application that demonstrates the Qt Charts Widgets API
|
|
Cockpit
|
Example application imitating an airplane cockpit using Graphs
|
|
圖形圖庫
|
Gallery of Bar, Scatter, and Surface graphs
|
|
Graph Printing
|
Printing a 2D or 3D graph
|
|
HelloGraphs
|
Using Graphs for 2D in a Qt Quick application
|
|
Mathematical Equations
|
Visualizing mathematical equations
|
|
OpenGL 加速係列範例
|
Example shows how to enable OpenGL acceleration for QLineSeries and QScatterSeries
|
|
QML 示波器
|
Example shows how to implement application with strict performance requirements using the Qt Charts QML API
|
|
QML 天氣
|
This is a basic demonstration showing how to use the different chart types by using qml
|
|
Simple Bar Graph
|
Using Bars3D in a QML application
|
|
Simple Scatter Graph
|
Using Scatter3D in a QML application
|
|
StocQt
|
A configurable stock chart for 100 stocks.
|
|
Surface Graph Gallery
|
Gallery with three different ways to use a Surface3D graph
|
|
體積渲染
|
Rendering volumetric objects
|
|
縮放綫範例
|
Example shows how to create your own custom zooming effect
|
|
可綁定特性
|
Demonstrates how the usage of bindable properties can simplify your C++ code
|
|
Books
|
Shows how to use Qt SQL classes with a model/view framework
|
|
Cached SQL Table
|
Cached Table example shows how a table view can be used to access a database, caching any changes to the data until the user explicitly submits them using a push button
|
|
連續緩存範例
|
Contiguous Cache example shows how to use QContiguousCache to manage memory usage for very large models. In some environments memory is limited and, even when it isn't, users still dislike an application using excessive memory. Using QContiguousCache to manage a list, rather than loading the entire list into memory, allows the application to limit the amount of memory it uses, regardless of the size of the data set it accesses
|
|
DOM Bookmarks Application
|
提供用於 XML 書簽交換語言文件的讀取器
|
|
Drill Down Example
|
Drill Down example shows how to read data from a database as well as submit changes, using the QSqlRelationalTableModel and QDataWidgetMapper classes
|
|
Hello 說話範例
|
Hello Speak example reads out user-provided text
|
|
IPC: Shared Memory
|
Demonstrates how to share image data between different processes using the Shared Memory IPC mechanism
|
|
MIME Type Browser
|
Shows the hierarchy of MIME types and can be used to determine the MIME type of a file
|
|
Mandelbrot
|
Mandelbrot example demonstrates multi-thread programming using Qt. It shows how to use a worker thread to perform heavy computations without blocking the main thread's event loop
|
|
Master Detail Example
|
Master Detail Example shows how to present data from different data sources in the same application. The album titles, and the corresponding artists and release dates, are kept in a database, while each album's tracks are stored in an XML file
|
|
Move Blocks
|
Move Blocks example shows how to animate items in a QGraphicsScene using a QStateMachine with a custom transition
|
|
Parsing and displaying CBOR data
|
A demonstration of how to parse files in CBOR format
|
|
Ping Pong States
|
Ping Pong States example shows how to use parallel states together with custom events and transitions in Qt State Machine Framework
|
|
Prime Counter
|
Demonstrates how to monitor the progress of concurrent operations
|
|
使用信號量的生産者和消費者
|
Producer and Consumer using Semaphores example shows how to use QSemaphore to control access to a circular buffer shared by a producer thread and a consumer thread
|
|
使用等待條件的生産者和消費者
|
Producer and Consumer using Wait Conditions example shows how to use QWaitCondition and QMutex to control access to a circular buffer shared by a producer thread and a consumer thread
|
|
QXmlStream 書簽範例
|
Demonstrates how to read and write XBEL files
|
|
Qt OPC UA Viewer
|
使用模型/視圖方式在樹視圖中顯示 OPC UA 服務器的所有節點
|
|
Qt OPC UA X509 Support
|
展示如何生成密鑰和證書簽名請求
|
|
Qt Quick 範例 - 本地存儲
|
A collection of QML local storage examples
|
|
Qt Quick Water Pump
|
Interacting with an OPC UA server to build a QML-based HMI for a simple water pump machine
|
|
Query Model Example
|
Query Model example shows how to make customized versions of data obtained from a SQL query, using a model that encapsulates the query and table views to display the results
|
|
隊列自定義類型
|
Queued Custom Type example shows how to send custom types between threads with queued signals and slots
|
|
Quick Speech Example
|
Quick Speech example reads out user-provided text
|
|
關係錶模型範例
|
Relational Table Model example shows how to use table views with a relational model to visualize the relations between items in a database
|
|
Rogue
|
Rogue example shows how to use the Qt state machine for event handling
|
|
SCXML Calculator
|
An application that implements the Calculator example presented in the SCXML Specification
|
|
SCXML Invoke
|
Invokes a compiled nested state machine
|
|
SCXML Media Player
|
Sends data to and receives it from a C++ data model
|
|
SCXML Sudoku
|
Demonstrates the use of separate javascript file with SCXML
|
|
SCXML Traffic Light (Dynamic, QML)
|
A Qt Quick application that uses a dynamically loaded state machine to implement a traffic light
|
|
SCXML Traffic Light (Dynamic, Widgets)
|
A widget-based application that uses a dynamically loaded state machine to implement a traffic light
|
|
SCXML Traffic Light (Simple, QML)
|
A Qt Quick application that uses a compiled state machine to implement a simplified traffic light
|
|
SCXML Traffic Light (Static, QML)
|
A Qt Quick application that uses a compiled state machine to implement a traffic light
|
|
SCXML Traffic Light (Static, Widgets)
|
A widget-based application that uses a compiled state machine to implement a traffic light
|
|
SQL Browser
|
SQL Browser example shows how a data browser can be used to visualize the results of SQL statements on a live database
|
|
SQL Widget Mapper Example
|
SQL Widget Mapper example shows how to use a map information from a database to widgets on a form
|
|
保存和加載遊戲
|
How to save and load a game using Qt's JSON or CBOR classes
|
|
序列化轉換器
|
How to convert between different serialization formats
|
|
錶格模型範例
|
Table Model example shows how to use a specialized SQL table model with table views to edit information in a database
|
|
Traffic Light
|
Traffic Light example shows how to use Qt State Machine Overview to implement the control flow of a traffic light
|
|
撤消框架範例
|
This example shows how to implement undo/redo functionality with the Qt undo framework
|
|
Water Pump
|
Interacting with an OPC UA server to build a QML-based HMI for a simple water pump machine
|
|
Water Pump Simulation Server
|
An OPC UA server that implements a simple water pump machine simulation
|
|
Word Count
|
演示如何使用 map-reduce (映射縮減) 算法
|
|
注解 URL (統一資源定位符)
|
Reads formatted NFC Data Exchange Format (NDEF) messages
|
|
Blocking Receiver
|
Shows how to use the synchronous API of QSerialPort in a non-GUI thread
|
|
Blocking Sender
|
Shows how to use the synchronous API of QSerialPort in a worker thread
|
|
藍牙聊天
|
Shows communication through Bluetooth using RFCOMM protocol
|
|
藍牙低功耗心率遊戲
|
A game demonstrating the interaction with a Bluetooth Low Energy Heart Rate device/service
|
|
藍牙低功耗心率服務器
|
An example demonstrating how to set up and advertise a GATT service. The example demonstrates the use of the Qt Bluetooth Low Energy classes related to peripheral (slave) functionality
|
|
藍牙低功耗掃描器
|
An application designed to browse the content of Bluetooth Low Energy peripheral devices. The example demonstrates the use of all Qt Bluetooth Low Energy classes
|
|
CAN 總綫管理器
|
Example sends and receives CAN bus frames
|
|
D-Bus 聊天
|
演示應用程序實例之間的通信
|
|
D-Bus 復雜乒乓
|
Demonstrates usage of the Qt D-Bus typesystem
|
|
D-Bus 乒乓
|
Demonstrates a simple message system using D-Bus
|
|
D-Bus 遠程控製車
|
Shows how to use Qt D-Bus to control a car from another application
|
|
Local Fortune Client
|
Demonstrates using QLocalSocket for a simple local service client
|
|
Local Fortune Server
|
Demonstrates using QLocalServer and QLocalSocket for serving a simple local service
|
|
MQTT Subscriptions
|
Creating a application that communicates with an MQTT broker
|
|
Modbus Client
|
Example implements a Modbus client application
|
|
Modbus 自定義命令
|
Example shows how to handle custom Modbus function codes
|
|
Modbus 服務器
|
Example implements a Modbus server application
|
|
模型/視圖客戶端
|
Developing a very simple client program which displays the content and changes made on a server
|
|
模型/視圖服務器
|
Developing a simple server program that displays and makes changes to a QTreeView which is made available on a Remote Objects network
|
|
NDEF (NFC 數據交換格式) 編輯器
|
Reads and writes NFC Data Exchange Format (NDEF) messages to NFC Forum Tags
|
|
Qt Quick Publication
|
Use Qt Quick Controls to create an application that can publish on MQTT topics
|
|
Qt Quick Subscription
|
Use Qt Quick Controls to create an application that can subscribe to MQTT topics
|
|
QtRemoteObjects WebSockets 應用程序
|
Using a non-QIODevice-based transport (QWebSocket) with QtRemoteObjects
|
|
Quick CoAP Multicast Discovery
|
使用 CoAP 客戶端采用 Qt Quick 用戶界麵進行多點播送資源探索
|
|
Quick Secure CoAP Client
|
Securing the CoAP client and using it with a Qt Quick user interface
|
|
SSL 服務器和客戶端
|
Setting up a secure Remote Object network using QSslSockets
|
|
Serial Terminal
|
Shows how to use various features of QSerialPort
|
|
Simple CoAP Client
|
Creating an application that communicates with a CoAP server
|
|
Simple MQTT Client
|
Creating a minimalistic telemetry application
|
|
Simpleswitch Direct Server and Client
|
A minimalist Remote Object server and client
|
|
時間客戶端應用程序
|
A client who holds a replica of a time object from a server and displays the time in a clock
|
|
時間服務器應用程序
|
A server which shares a time object with connected clients
|
|
WebSockets MQTT 訂閱
|
Combining an MQTT client with a web socket connection
|
|
最小 RSS 列錶應用程序
|
演示如何抓取並顯示網絡資源
|
|
阻塞 Fortune 客戶端
|
演示如何為網絡服務創建客戶端
|
|
廣播接收器
|
演示如何通過本地網絡接收廣播信息
|
|
廣播發送器
|
Demonstrates how to broadcast information to multiple clients on a local network
|
|
DNS 查找
|
Demonstrates how to lookup a host name using QDnsLookup
|
|
DTLS 客戶端
|
This example demonstrates how to implement client-side DTLS connections
|
|
DTLS 服務器
|
This examples demonstrates how to implement a simple DTLS server
|
|
Fortune 客戶端
|
演示如何為網絡服務創建客戶端
|
|
Fortune 服務器
|
演示如何為網絡服務創建服務器
|
|
HTTP 客戶端
|
演示簡單 HTTP 客戶端
|
|
Image Scaling
|
演示如何異步下載和比例縮放圖像
|
|
Lightning Viewer
|
An application with a responsive UI showing lightning strikes on a map in real-time by combining Qt Quick, Qt Location, Qt Positioning and Qt Websockets.
|
|
Magic 8 Ball
|
Creating a HTTP2 connection between a Qt gRPC client and a C++ gRPC server
|
|
多流客戶端
|
演示如何在客戶端側使用 SCTP (流控製傳輸協議)
|
|
多流服務器
|
演示如何在服務器側使用 SCTP (流控製傳輸協議)
|
|
多點播送接收器
|
演示如何接收發送給多點播送組的信息
|
|
多點播送發送器
|
演示如何把消息發送給多點播送組
|
|
網絡聊天
|
演示有狀態點對點聊天客戶端
|
|
QML WebSocket 客戶端
|
Explains how to write a QML WebSocket client example
|
|
QML WebSocket 服務器
|
A simple example that shows how to use a QML WebSocketServer
|
|
Qt GRPC Client Guide
|
Qt GRPC client guide
|
|
Qt Quick 演示 - RESTful API 客戶端
|
如何創建 RESTful API QML 客戶端的範例。
|
|
QtGrpc Chat
|
A chat application to share messages of any kind in a chat room
|
|
Reddit 範例
|
演示采用 OAuth 2 進行身份驗證以訪問 Reddit
|
|
SCXML FTP 客戶端
|
使用狀態機實現簡單 FTP 客戶端
|
|
安全套接字客戶端
|
演示如何通過加密 SSL (安全套接字層) 連接通信
|
|
安全 WebSocket 迴顯客戶端
|
A simple client application using secure WebSockets (wss)
|
|
安全 WebSocket 迴顯服務器
|
A simple server to respond to clients over secure WebSockets (wss)
|
|
傳感器
|
Sensors example shows how two applications can communicate by sending protobuf messages using UDP sockets
|
|
簡單 WebSocket 聊天
|
A minimal chat application using the WebSocket protocol
|
|
綫程化 Fortune 服務器
|
Threaded Fortune Server example shows how to create a server for a simple network service that uses threads to handle requests from different clients. It is intended to be run alongside the Fortune Client example
|
|
Torrent 範例
|
演示復雜 TCP/IP 操作
|
|
Vehicle
|
Manage two threaded connections between a Qt gRPC client and a C++ gRPC server
|
|
WebSocket 迴顯客戶端
|
Show how to write a simple WebSocket client application
|
|
WebSocket 迴顯服務器
|
展示如何編寫簡單 WebSocket 服務器應用程序
|
|
GeoJson Viewer (QML)
|
GeoJson viewer example demonstrates how to manipulate MapItems, handle user input and I/O to and from a GeoJson file
|
|
Lightning Viewer
|
An application with a responsive UI showing lightning strikes on a map in real-time by combining Qt Quick, Qt Location, Qt Positioning and Qt Websockets.
|
|
Log File Position Source (C++)
|
Logfile Position Source shows how to create and work with a custom position source. It can be useful for simulating GPS data, or when the data is received in some custom format
|
|
地圖查看器 (QML)
|
Map Viewer example shows how to display and interact with a map, search for an address, and find driving directions
|
|
MapItemView Transitions (QML)
|
How to use transitions together with MapItemView
|
|
Minimal Map (QML)
|
Minimum code to display a map using Qt Quick
|
|
Places (QML)
|
Places example demonstrates how to search for Places and access related content
|
|
Places List (QML)
|
Places List example demonstrates how to search for and display a list of places using a ListView
|
|
地點地圖 (QML)
|
Places Map example demonstrates how to search for and display a list of places on a map using a MapItemView
|
|
Plane Spotter (QML)
|
Plane Spotter example demonstrates the tight integration of location and positioning data types into QML
|
|
衛星信息
|
Satellite Info example shows the available satellites using Sky View, Table View, or RSSI View and the user's current position. It is implemented with Qt Positioning and Qt Quick
|
|
Weather Info
|
Weather Info example shows how to use the user's current position to retrieve local content from a web service in a C++ plugin for Qt Quick, using Qt Positioning
|
|
地址簿
|
Address book example shows how to use proxy models to display different views onto data from a single model
|
|
Arrow Pad 範例
|
理解 Qt Linguist 上下文概念和使用 2 種或多種語言
|
|
基本布局範例
|
Shows how to use the standard layout managers
|
|
基本排序/過濾模型範例
|
Basic Sort/Filter Model example illustrates how to use QSortFilterProxyModel to perform basic sorting and filtering
|
|
計算器範例
|
Example shows how to use signals and slots to implement the functionality of a calculator widget, and how to use QGridLayout to place child widgets in a grid
|
|
日曆 Widget 範例
|
Calendar Widget example shows use of QCalendarWidget
|
|
組閤框 Widget 映射器範例
|
Combo Widget Mapper example shows how to use a custom delegate to map information from a model to specific widgets on a form
|
|
補全器範例
|
Completer example shows how to provide string-completion facilities for an input widget based on data provided by a model
|
|
上下文大小寫幫助範例
|
Using the QHelpEngineCore class to implement context-sensitive help for applications
|
|
自定義補全器範例
|
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
|
|
自定義排序/過濾模型範例
|
Custom Sort/Filter Model example illustrates how to subclass QSortFilterProxyModel to perform advanced sorting and filtering
|
|
可拖拽圖標範例
|
Draggable Icons example shows how to drag and drop image data between widgets in the same application, and between different applications
|
|
可拖拽文本範例
|
Illustrates how to drag and drop text between widgets
|
|
掉落站點範例
|
Example shows how to distinguish the various MIME formats available in a drag and drop operation
|
|
可編輯樹模型範例
|
This example shows how to implement a simple item-based tree model that can be used with other classes in the model/view framework
|
|
抓取更多範例
|
Fetch More example shows how to add items to an item view model on demand
|
|
流式布局範例
|
Shows how to arrange widgets for different window sizes
|
|
凍結列範例
|
This example demonstrates how to freeze a column within a QTableView
|
|
采用 Qt Widgets 快速入門編程
|
A tutorial for Qt Widgets based notepad application
|
|
Hello tr() 範例
|
將小 Hello World 程序翻譯成拉丁語
|
|
I18N 範例
|
演示 Qt 對翻譯文本的支持
|
|
圖像手勢範例
|
Demonstrates the use of simple gestures in a widget
|
|
許可嚮導範例
|
License Wizard example shows how to implement complex wizards in Qt
|
|
行編輯範例
|
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
|
|
菜單範例
|
Menus example demonstrates how menus can be used in a main window application
|
|
Models and Views: AbstractItemModel Example
|
Shows how to use a QAbstractItemModel subclass as a model in QML
|
|
Models and Views: Fetch More functionality using a worker thread
|
Demonstrates how to implement fetchMore() in a worker thread while maintaining a responsive UI
|
|
Models and Views: Object ListModel Example
|
Shows how to use a QList
as a model in QML
|
|
Models and Views: String ListModel Example
|
Shows how to use a QStringList as a model in QML
|
|
訂購錶單範例
|
Order Form example shows how to generate rich text documents by combining a simple template with data input by the user in a dialog
|
|
PDF 多頁查看器範例
|
A Qt Quick PDF viewer that allows scrolling through the pages
|
|
PDF Single Page Viewer Example
|
A Qt Quick PDF viewer that views one page at a time
|
|
PDF 查看器 Widget 範例
|
A widget-based PDF viewer that allows scrolling through the pages
|
|
QML Dynamic View Ordering Tutorial 1 - A Simple ListView and Delegate
|
|
|
QML 預覽器範例
|
Demonstrates how to mix QML with a Qt Widgets application using QWidget::createWindowContainer()
|
|
QQuickWidget - QQuickView 比較範例
|
Demonstrates the benefits of QQuickWidget over a QQuickView embedded as a native window
|
|
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
|
|
Qt Quick Controls - Contact List
|
A QML app using Qt Quick Controls and a C++ class that implements a simple contact list
|
|
Qt Quick Controls - Event Calendar
|
A simple event calendar
|
|
Qt Quick Controls - 圖庫
|
A gallery of controls
|
|
Qt Quick 範例 - 指針處理程序
|
Shows how to use Qt Quick Input Handlers in interactive components
|
|
Qt Quick 範例 - 定位器
|
This is a collection of QML Positioner examples
|
|
Qt Quick I18N
|
為 Qt Quick 應用程序生成翻譯文件 (TS 和 QM)
|
|
Qt Quick Layouts - 基本範例
|
演示如何使用布局類型來排列 UI
|
|
Qt Quick Layouts - 響應布局範例
|
Demonstrates how to use LayoutItemProxy to make a responsive UI
|
|
Qt Quick Widgets 範例
|
Demonstrates how to mix QML with a Qt Widgets application using the QQuickWidget class
|
|
塗鴉範例
|
Scribble example shows how to reimplement some of QWidget's event handlers to receive the events generated for the application's widgets
|
|
快捷編輯器範例
|
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
|
|
簡單樹模型範例
|
Simple Tree Model example shows how to use a hierarchical model with Qt's standard view classes
|
|
滑塊範例
|
Sliders example shows how to use the different types of sliders available in Qt: QSlider, QScrollBar and QDial
|
|
自鏇框範例
|
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
|
|
電子錶格
|
Spreadsheet example shows how to create a simple spreadsheet application
|
|
Spreadsheets Example
|
Demonstrates how to create a spreadsheet application
|
|
標準對話框範例
|
Standard Dialogs example shows the standard dialogs that are provided by Qt
|
|
星號委托範例
|
Star Delegate example shows how to create a delegate that can paint itself and that supports editing
|
|
句法高亮器範例
|
Syntax Highlighter example shows how to perform simple syntax highlighting
|
|
選項卡對話框範例
|
Tab Dialog example shows how to construct a tab dialog using the QTabWidget class
|
|
數位闆範例
|
This example shows how to use a Wacom tablet in Qt applications
|
|
觸摸鏇鈕範例
|
Shows how to create custom controls that accept touch input
|
|
半透明背景
|
Example shows how to make a round window with a translucent background
|
|
樹模型補全器範例
|
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
|
|
通俗嚮導範例
|
Trivial Wizard example illustrates how to create a linear three-page registration wizard using three instances of QWizardPage and one instance of QWizard
|
|
Troll Print 範例
|
更新用於稍後發行的翻譯
|
|
UI 組件:錶盤控件範例
|
Dial Control Example shows how to create a speedometer-type dial
|
|
UI 組件:可翻轉範例
|
Flipable Example shows an item that flips whenever clicked, rotating around the y-axis
|
|
Widget 圖庫範例
|
Widgets Gallery example shows widgets relevant for designing UIs
|
|
Widget 教程 - 子級 Widget
|
|
|
Widget 教程 - 創建窗口
|
|
|
Widget 教程 - 嵌套布局
|
|
|
Widget 教程 - 使用布局
|
|
|
窗口標誌範例
|
窗口標誌範例展示如何使用可用於 Qt 的窗口標誌
|