所有 Qt 範例

Calqlatr A Qt Quick app designed for portrait devices that uses custom components, animated with AnimationController, and JavaScript for the application logic.
Coffee Machine A Qt Quick application with a state-based custom user interface.
Document Viewer A Widgets application to display and print Json, text and PDF files. Demonstrates various features to use in widget applications: Using QSettings, query and save user preferences, manage file histories and control cursor behavior when hovering over widgets.
采用 Qt Quick 快速入門編程 基於鬧鍾應用程序的 Qt Quick 教程。
In-App purchasing demo A complete mobile application that demonstrates purchasing in-app products.
照片錶麵 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 演示 - 時鍾 演示使用 ListView 類型去顯示由 ListModel 生成的數據,及使用 SpringAnimation 類型去動畫圖像的 QML 時鍾應用程序。
Qt Quick Demo - RESTful Color Palette API client Example of how to create a RESTful API QML client.
Qt Quick 演示 - RSS 新聞 A QML RSS news reader that uses XmlListModel and XmlListModelRole custom QML types to download XML data, ListModel and ListElement to create a category list, and ListView to display the data.
Qt Quick 演示 - StocQt 用於 NASDAQ-100 的可配置庫存圖錶。
Robot Arm Example Demonstrates how to add a C++ backend to a 3D project from Qt Design Studio. This example demonstrates adding a C++ backend to a 3D project created in Qt Design Studio. The example itself consists of an interactive industrial robot arm in a Qt Quick 3D scene. The 2D UI to control the robot arm is implement using Qt Quick Controls.

Active Qt

COM App 範例 (ActiveQt) COM App example shows how to use ActiveQt to develop a Qt application that can be automated via COM. Different QObject based classes are exposed as COM objects that communicate with the GUI of the running Qt application. The APIs of those COM objects has been designed to resemble the APIs of standard COM applications; i.e. those from Microsoft Office
Outlook 範例 (ActiveQt) Qutlook example demonstrates the use of ActiveQt to automate Outlook. The example makes use of the dumpcpp tool to generate a C++ namespace for the type library describing the Outlook Object Model
簡單範例 (ActiveQt) Simple example demonstrates the use of QAxBindable and QAxFactory
ActiveQt 包裹器範例 Wrapper example demonstrates how to export existing QWidget classes as ActiveX controls, and the use of QAxFactory together with the QAXFACTORY_EXPORT() macro. ActiveX controls in this example are the standard button classes QPushButton, QCheckBox and QRadioButton as provided by Qt

Qt 3D

Qt 3D:基本形狀 C++ 範例 展示由 Qt 3D 提供的 4 個基本形狀,並為每個形狀設置網格
Qt 3D:多視口 QML 範例 QML 範例演示從多個視口渲染場景圖形
Qt 3D:PBR 材質 QML 範例 QML 應用程序演示使用 PBR 材質
Qt 3D:簡單 C++ 範例 演示如何在 Qt 3D 渲染場景的 C++ 應用程序
Qt 3D:簡單自定義材質 QML 範例 演示在 Qt 3D 中創建自定義材質
Qt 3D:簡單 QML 範例 QML 應用程序演示如何在 Qt 3D 中渲染場景
Qt 3D:綫框 QML 範例 Qt 3D QML 應用程序實現單通綫框渲染方法

Qt Assistant 手冊

遠程控製範例 使用和控製 Qt Assistant 作為幫助查看器
簡單文本查看器範例 使用 Qt Assistant 作為應用程序的自定義幫助查看器

Qt Bluetooth

藍牙聊天 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

Qt Charts

區域圖錶範例 Example shows how to create a simple area chart
Audio Samples vs Sound Level This example shows the drawing of microphone samples vs audio level
條形圖錶範例 Example shows how to create a bar chart
BarModelMapper 範例 This example shows how to use QAbstractItemModel derived model as the data for the bar series
方框和晶須範例 Example shows how to create a box-and-whiskers chart
標注範例 This example shows how to draw an additional element (a callout) on top of the chart
燭颱圖錶範例 Shows how to create a candlestick chart
圖錶主題範例 Example shows the look and feel of the different built-in themes
自定義圖錶範例 This example shows how to customize the appearance of the different elements on a chart
日期時間軸範例 Example shows how to use QLineChart with QDateTimeAxis
圓環圖錶分解範例 This example shows how to use create a donut breakdown chart using QPieSeries API
圓環圖錶範例 This example shows how to create a simple donut chart, and do some customizations to a slice
動態樣條綫範例 This example shows how to draw dynamic data
水平條形圖錶範例 Example shows how to create a horizontal bar chart
水平百分比條形圖錶範例 Example shows how to create a simple horizontal percent bar chart
水平堆疊條形圖錶範例 Example shows how to create a simple stacked horizontal bar chart
圖例範例 This example shows how to detach the legend from the chart and how to attach it back
圖例標記範例 Example shows how to make use of legend markers
Light Markers Points Selection Example Example shows a usage of light markers and points selection for the series
綫和條形圖範例 Example shows how to combine different charts and set the axes
綫圖錶範例 Example shows how to create a simple line chart
對數軸範例 Example shows how to use QLogValueAxis
模型數據範例 This example shows how to use the QAbstractItemModel derived model as the data for the series
多軸範例 Example shows how to create a simple chart with two vertical axes. One for each series
嵌套圓環範例 This example shows how to create a nested donuts chart using the QPieSeries API
OpenGL 加速係列範例 Example shows how to enable OpenGL acceleration for QLineSeries and QScatterSeries
百分比條形圖錶範例 Example shows how to create a simple percent bar chart
餅狀圖錶定製範例 This example shows how the look and feel of a pie chart can be customized
餅狀圖錶深入研究範例 Example shows how to implement a piechart with drilldown effect
餅狀圖錶範例 Example shows how to create a simple pie chart and do some customizations to a pie slice
極坐標圖錶範例 Example shows how to create a simple polar chart with multiple different series
QML 軸 This is a demonstration of how to use axes in your QML application
QML 圖錶範例 This basic demonstration shows how to use the different chart types by using qml
QML 自定義圖例 This example shows you how to create your own custom legend
QML 定製 This application shows you how to customize different visual properties of a ChartView and series
QML F1 圖例 This application demonstrates how to use ListModel as a datasource for a Chart
QML 示波器 Example shows how to implement application with strict performance requirements using the Qt Charts QML API
QML 極坐標圖錶 This is a demonstration on how to use a polar chart in your QML application
QML 天氣 This is a basic demonstration showing how to use the different chart types by using qml
散點交互範例 This example shows how to create a simple scatter chart and how to interact with the chart
散點圖錶範例 Example shows how to create a simple scatter chart
Selected Point Configuration Example This example shows how to modify the configuration of individual points
SelectedBar Example Example shows how to use a selection feature for the bar chart
樣條綫圖錶範例 Example shows how to create a simple spline chart
堆疊條形圖錶深入研究範例 Example shows how to implement drilldown using a stacked barchart
堆疊條形圖錶範例 Example shows how to create a simple stacked bar chart
溫度記錄範例 Example shows how to create a bar chart with negative bars
縮放綫範例 Example shows how to create your own custom zooming effect

Qt CoAP

控製颱 CoAP 客戶端範例 Creating a simple console application that communicates with a CoAP server
快速 CoAP 多點播送探索範例 使用 CoAP 客戶端采用 Qt Quick 用戶界麵進行多點播送資源探索
快速安全 CoAP 客戶端範例 Securing the CoAP client and using it with a Qt Quick user interface
簡單 CoAP 客戶端範例 Creating an application that communicates with a CoAP server

Qt Concurrent

Image Scaling Demonstrates how to asynchronously download and scale images
Prime Counter Demonstrates how to monitor the progress of concurrent operations
Word Count 演示如何使用 map-reduce (映射縮減) 算法

Qt Core

Bindable Properties Example Demonstrates how the usage of bindable properties can simplify your C++ code
連續緩存範例 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
Convert Example Convert example demonstrates how to convert between different serialization formats
自定義類型範例 Custom Type example shows how to integrate a custom type into Qt's meta-object system
JSON 保存遊戲範例 JSON Save Game example demonstrates how to save and load a small game using QJsonDocument, QJsonObject and QJsonArray
本地財富客戶端範例 Demonstrates using QLocalSocket for a simple local service client
本地財富服務器範例 Demonstrates using QLocalServer and QLocalSocket for serving a simple local service
MIME 類型瀏覽器範例 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
Parsing and displaying CBOR data A demonstration of how to parse files in CBOR format
QXmlStream 書簽範例 演示如何讀寫 XBEL 文件
Qt Android Notifier Demonstrates calling Java code from Qt in an Android application
隊列自定義類型範例 Demonstrates multi-thread programming using Qt
信號量範例 Demonstrates multi-thread programming using Qt
共享內存範例 Demonstrates doing inter-process communication using shared memory with the QSharedMemory class
等待條件範例 Demonstrates multi-thread programming using Qt

Qt D-Bus

D-Bus Chat 演示應用程序實例之間的通信
D-Bus Complex Ping Pong Demonstrates usage of the Qt D-Bus typesystem
D-Bus Ping Pong Demonstrates a simple message system using D-Bus
D-Bus Remote Controlled Car Shows how to use Qt D-Bus to control a car from another application

Qt Data Visualization

Axis Handling Implementing axis dragging with a custom input handler in QML, and creating a custom axis formatter
Graph Gallery Gallery of Bar, Scatter, and Surface graphs
Simple Bar Graph Using Bars3D in a QML application
Simple Scatter Graph Using Scatter3D in a QML application
Surface Graph Gallery Gallery with three different ways to use a Surface3D graph
Volumetric Rendering Rendering volumetric objects

Qt Designer 手冊

計算器構建器 Creating a user interface from a Qt Designer form at run-time
計算器錶單 在應用程序中使用采用 Qt Designer 創建的錶單
Calculator Form/Multiple Inheritance 在應用程序中使用采用 Qt Designer 創建的錶單
容器擴展範例 Creating a custom multi-page plugin for Qt Designer
自定義 Widget 插件 Creating a custom widget plugin for Qt Designer
任務菜單擴展 Creating a custom widget plugin for Qt Designer and providing custom task menu entries that are associated with the plugin

Qt GRPC

聊天 Using the Qt GRPC client API in the user applications
Magic 8 Ball Creating a HTTP2 connection between a Qt GRPC client and a C++ gRPC server

Qt GUI

Hello Vulkan Cubes Example Shows the basics of using QVulkanWindow
Hello Vulkan 三角形範例 Shows the basics of rendering with QVulkanWindow and the Vulkan API
Hello Vulkan 小部件範例 Shows the usage of QVulkanWindow in QWidget applications
光柵窗口範例 This example shows how to create a minimal QWindow based application using QPainter for rendering

Qt HTTP Server

RESTful Color Palette Server Example of how to create a RESTful API server using the QHttpServer
Simple HTTP Server Simple example of how to set up an HTTP server

Qt Help

上下文大小寫幫助範例 Using the QHelpEngineCore class to implement context-sensitive help for applications

Qt Linguist 手冊

Arrow Pad 範例 理解 Qt Linguist 上下文概念和使用 2 種或多種語言
Hello tr() 範例 將小 Hello World 程序翻譯成拉丁語
I18N 範例 Demonstrates Qt's support for translated text
Troll Print 範例 更新用於稍後發行的翻譯

Qt Location

GeoJson Viewer (C++/QML) GeoJson viewer example demonstrates how to manipulate MapItems, handle user input and I/O to and from a GeoJson file
地圖查看器 (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

Qt MQTT

MQTT 訂閱範例 Creating a application that communicates with an MQTT broker
快速 MQTT 範例 Registering QMqttClient to QML and using it in a Qt Quick user interface
簡單 MQTT 客戶端範例 Creating a minimalistic telemetry application
WebSockets MQTT 訂閱範例 Combining an MQTT client with a web socket connection

Qt Multimedia

音頻設備範例 Testing the available audio devices and their configuration
音頻輸齣範例 Enabling audio playback using the QAudioSink class
音頻錄製器範例 Discovering the available devices and supported codecs
Audio Source Example Recording audio using the QAudioSource class
攝像頭範例 Shows how to capture a still image or record video. or video
媒體播放器範例 播放音頻和視頻
QML 攝像頭範例 Camera Example shows how to use the API to capture a still image or video
QML Media Player Example Playing audio and video using Qt Quick
QML 視頻範例 Transforming video and camera viewfinder content
QML Video Recorder Recording audio and video using Qt Quick
Screen Capture Example Capturing a screen or window
光譜範例 Analyzing a raw audio stream using the FFTReal library
視頻圖形項範例 Streaming video on a graphics scene
視頻小部件範例 實現視頻播放器 Widget

Qt NFC

注解 URL (統一資源定位符) Example shows reading from formatted NFC Data Exchange Format (NDEF) messages
NDEF 編輯器範例 An example of reading and writing NFC Data Exchange Format (NDEF) messages to NFC Forum Tags

Qt Network

阻塞 Fortune 客戶端 演示如何為網絡服務創建客戶端
廣播接收器範例 演示如何通過本地網絡接收廣播信息
廣播發送器範例 Demonstrates how to broadcast information to multiple clients on a local network
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 Client 演示簡單 HTTP 客戶端
多點播送接收器 演示如何接收發送給多點播送組的信息
多點播送發送器 演示如何把消息發送給多點播送組
網絡聊天範例 演示有狀態點對點聊天客戶端
安全套接字客戶端範例 演示如何通過加密 SSL (安全套接字層) 連接通信
綫程化 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 操作

Qt Network Authorization

Reddit 範例 演示采用 OAuth 2 進行身份驗證以訪問 Reddit
Twitter 時間綫範例 演示采用 OAuth 進行身份驗證以訪問 Twitter 時間綫

Qt OPC UA

Qt OPC UA 查看器範例 使用模型/視圖方式在樹視圖中顯示 OPC UA 服務器的所有節點
Qt OPC UA X509 支持範例 展示如何生成密鑰和證書簽名請求
Qt Quick 水泵範例 與 OPC UA 服務器交互為簡單機器構建基於 QML 的 HMI (人機界麵)
水泵範例 與 OPC UA 服務器交互為簡單機器構建基於 QML 的 HMI (人機界麵)

Qt OpenGL

2D 描繪範例 2D Painting example shows how QPainter and QOpenGLWidget can be used together to display accelerated 2D graphics on supported hardware
立方體 OpenGL ES 2.0 範例 Shows how to manually rotate a textured 3D cube with user input
Hello GL2 範例 Hello GL2 example demonstrates the basic use of the OpenGL-related classes provided with Qt
Hello GLES3 範例 Demonstrates OpenGL ES 3.0 functions via QOpenGLExtraFunctions
OpenGL 窗口範例 This example shows how to create a minimal QWindow based application for the purpose of using OpenGL
QOpenGLWidget Stereoscopic Rendering Example This example shows how to create a minimal QOpenGLWidget based application with stereoscopic rendering support
紋理範例 Textures example demonstrates the use of Qt's image classes as textures in applications that use both OpenGL and Qt to display graphics

Qt PDF

PDF Multipage Viewer Example A Qt Quick PDF viewer that allows scrolling through the pages
PDF Viewer Widget Example A widget-based PDF viewer that allows scrolling through the pages

Qt Positioning

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
SatelliteInfo (QML) SatelliteInfo example shows the available satellites using Sky View or RSSI View and the user's current position. The satellites currently contributing to the GPS fix are marked as pink
Weather Info (C++/QML) 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 QML

Qt Protobuf

傳感器 Sensors example shows how two applications can communicate by sending protobuf messages using UDP sockets

Qt QML

QML 範例 - 動態場景 此範例演示創建動態組件
Qt Quick I18N Generating translation files (TS and QM) for a Qt Quick application
采用 C++ 編寫 QML 擴展 關於采用 Qt C++ 擴展 QML 的教程
Writing advanced QML Extensions with C++ Tutorial about advanced extensions to QML with Qt C++

Qt Quick

C++ 擴展:圖像提供程序範例 如何采用 QQuickImageProvider 加載 QML 圖像
C++ 擴展:圖像響應提供程序範例 How to load images asynchronously in QML
Models and Views: AbstractItemModel Example Shows how to use a QAbstractItemModel subclass as a model in QML
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
Pointer Handlers Example Shows how to use Qt Quick Input Handlers in interactive components
QML Advanced Tutorial 1 - Creating the Game Canvas and Blocks
QML Advanced Tutorial 2 - Populating the Game Canvas
QML Advanced Tutorial 3 - Implementing the Game Logic
QML Advanced Tutorial 4 - Finishing Touches
QML Dynamic View Ordering Tutorial 1 - A Simple ListView and Delegate
QML Dynamic View Ordering Tutorial 2 - Dragging View Items
QML Dynamic View Ordering Tutorial 3 - Moving Dragged Items
QML Dynamic View Ordering Tutorial 4 - Sorting Items
QQuickRenderControl D3D11 Example Shows how to render a Qt Quick scene into a texture that is then used by a non-Quick based Direct3D 11 renderer
QQuickRenderControl OpenGL Example Shows how to render a Qt Quick scene into a texture that is then used by a non-Quick based OpenGL renderer
QQuickWidget - QQuickView Comparison Example Demonstrates the benefits of QQuickWidget over a QQuickView embedded as a native window
Qt Quick Examples - Accessibility This example demonstrates the implementation of accessible buttons
Qt Quick Examples - Animation This is a collection of QML Animation examples
Qt Quick 範例 - 畫布 This is a collection of QML Canvas examples
Qt Quick 範例 - 拖放 This is a collection of QML drag and drop examples
Qt Quick Examples - Embedded in Widgets Demonstrates embedding a QQuickWindow into a QWidget UI via QWidget::createWindowContainer()
Qt Quick 範例 - 圖像元素 This is a collection of QML examples relating to image types
Qt Quick Examples - Item Variable Refresh Rate A Qt Quick example shows how to setup variable refresh rate for specific parts of the UI
Qt Quick 範例 - 鍵交互 This is a collection of QML keyboard interaction examples
Qt Quick 範例 - 本地存儲 A collection of QML local storage examples
Qt Quick 範例 - MouseArea This is an example of the MouseArea type in QML
Qt Quick Examples - MultiEffect Item Switcher Demonstrates MultiEffect usage
Qt Quick Examples - MultiEffect Test Bed Demonstrates MultiEffect usage
Qt Quick 範例 - 定位器 This is a collection of QML Positioner examples
Qt Quick Examples - Right to Left This is a collection of QML Right to Left examples
Qt Quick Examples - Shader Effects A Qt Quick example demonstrating the use of shader effects
Qt Quick 範例 - 形狀 A Qt Quick example demonstrating the use of shape items
Qt Quick 範例 - 文本 This is a collection of QML examples relating to text
Qt Quick Examples - Threading This is a collection of QML multithreading examples
Qt Quick Examples - Touch Interaction A collection of QML Touch Interaction examples
Qt Quick 範例 - 視圖 這是 QML 模型/視圖範例的集閤
Qt Quick 範例 - 窗口和屏幕 This example demonstrates the Window and Screen types in QML
Qt Quick Examples - externaldraganddrop This is an example of drag-and-drop among QML applications
Qt Quick Layouts - 基本範例 演示如何使用布局類型來排列 UI
Qt Quick Particles 範例 - 影響器 這是使用 QML 粒子係統 Affector 範例的集閤
Qt Quick Particles 範例 - 發射器 This is a collection of examples using Emitters in the QML particle system
Qt Quick Particles 範例 - 圖像粒子 這是使用 QML 粒子係統 Affector 範例的集閤
Qt Quick Particles 範例 - 係統 這是使用 QML 粒子係統 Affector 範例的集閤
Qt Quick TableView 範例 - 康威的人生遊戲 Conway’s Game of Life example shows how the QML TableView type can be used to display a C++ model that the user can pan around
Qt Quick TableViews 範例 - 像素器 Pixelator example shows how a QML TableView and a delegate can be used for custom table models
Qt Quick Widgets 範例 Demonstrates how to mix QML with a Qt Widgets application using the QQuickWidget class
場景圖形 - 自定義幾何圖形 Shows how to implement a custom geometry in the Qt Quick Scene Graph
Scene Graph - Custom Material Shows how to implement a custom material in the Qt Quick Scene Graph
Scene Graph - Custom QSGRenderNode Shows how to use QSGRenderNode to implement custom rendering in the Qt Quick scenegraph
場景圖形 - 在 QML 下的 Direct3D 11 Shows how to render directly with Direct3D 11 under a Qt Quick scene
場景圖形 - 圖形 Demonstrates how one can combine custom materials and geometries under a single QQuickItem
場景圖形 - Metal 紋理導入 Shows how to use a texture created directly with Metal
場景圖形 - 在 QML 下的 Metal Shows how to render directly with Metal under a Qt Quick scene
場景圖形 - QML 下的 OpenGL Shows how to render OpenGL under a Qt Quick scene
Scene Graph - Painted Item Shows how to implement QPainter-based custom scenegraph items
場景圖形 - 渲染 FBO (幀緩衝對象) Shows how to use FramebufferObjects with Qt Quick
場景圖形 - 2 紋理提供程序 Shows how to combine two textures from two texture providers in a custom scene graph node
場景圖形 - Vulkan 紋理導入 Shows how to use a texture created directly with use a texture created directly withulkan
場景圖形 - 在 QML 下的 Vulkan Shows how to render directly with Vulkan under a Qt Quick scene
Threaded ListModel Example Threaded ListModel example shows how to use a ListModel from multiple threads using WorkerScript
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

Qt Quick 3D

Qt Quick 3D - 抗鋸齒範例 Demonstrates the antialiasing modes in Qt Quick 3D
Qt Quick 3D - Baked Lightmap Example Demonstrates the use of baked lightmaps in a 3D scene
Qt Quick 3D - Custom Effect Example Demonstrates writing custom post-processing effects
Qt Quick 3D - Custom Geometry Example Demonstrates providing custom vertex data from C++
Qt Quick 3D - Custom Instanced Rendering Demonstrates instancing with custom materials and a C++ instance table
Qt Quick 3D - 自定義材質範例 Demonstrates writing shaded custom materials
Qt Quick 3D - Custom Morphing Animation Demonstrates writing C++ custom geometry with a morph target
Qt Quick 3D - 自定義著色器範例 Demonstrates the use of custom vertex and fragment shaders
Qt Quick 3D - 動態模型創建範例 Demonstrates dynamic model creation
Qt Quick 3D - 動態紋理範例 Demonstrates how to use a 2D layer as a 3D texture
Qt Quick 3D - HelloCube 範例 Demonstrates how to render 2D and 3D objects together in Qt Quick 3D
Qt Quick 3D - Instanced Rendering Example Demonstrates how to do instanced rendering in Qt Quick 3D
Qt Quick 3D - Introduction Demonstrates how to render a scene in Qt Quick 3D
Qt Quick 3D - Level of Detail Helper Example Demonstrates the use of level of detail helper
Qt Quick 3D - 燈光範例 Demonstrates the use of different light types
Qt Quick 3D - Morphing Example Demonstrates how to control morphing animations in Qt Quick 3D
Qt Quick 3D - Particles 3D Testbed Example Demonstrates how to use the Qt Quick 3D Particles3D module
Qt Quick 3D - 拾取範例 Demonstrates picking of models
Qt Quick 3D - Principled 材質範例 Demonstrates the use of Principled Material
Qt Quick 3D - Procedural Texture Example Demonstrates how to provide custom texture data from C++
Qt Quick 3D - Quick Ball Example Demonstrates how to create a simple game using Quick3D
Qt Quick 3D - Quick 項範例 Demonstrates the use of Qt Quick Items in Quick 3D scene
Qt Quick 3D - Reflection Probes Example Demonstrates the use of reflection probes in Qt Quick 3D
Qt Quick 3D - RuntimeLoader Example Demonstrates how assets can be loaded at runtime
Qt Quick 3D - Scene Effects Example Demonstrates the use of ExtendedSceneEnvironment
Qt Quick 3D - Screen Space Reflections Example Demonstrates reflections in Qt Quick 3D
Qt Quick 3D - Simple Fog Example Demonstrates how to enable fog in the 3D scene
Qt Quick 3D - Simple Skinning Example Demonstrates how to render a simple skinning animation in Qt Quick 3D
Qt Quick 3D - Sub-mesh Example Demonstrates how assign materials to sub-meshes
Qt Quick 3D - View3D 範例 Demonstrates the use of View3D to show a scene from multiple cameras

Qt Quick 3D Physics

Qt Quick 3D Physics - Cannon Example Demonstrates how to spawn physical objects
Qt Quick 3D Physics - CharacterController Example Demonstrates the CharacterController type
Qt Quick 3D Physics - Compound Shapes Example Demonstrates using complex collision shapes
Qt Quick 3D Physics - Custom Shapes Example Demonstrates using different shapes
Qt Quick 3D Physics - Impeller Example Demonstrates using trigger bodies and collision info
Qt Quick 3D Physics - Mass Example Demonstrates different ways of setting mass and inertia of a body
Qt Quick 3D Physics - Material Example Demonstrates using physical materials
Qt Quick 3D Physics - Simple Example Demonstrates setting up a simple physics scene

Qt Quick Controls

Qt Quick Controls - Attached Style Properties Example Demonstrates use of QQuickAttachedPropertyPropagator
Qt Quick Controls - 聊天教程 Tutorial about writing a basic chat client using Qt Quick Controls
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 - Flat Style A QML app using Qt Quick Controls and a QML plugin with customized controls
Qt Quick Controls - 圖庫 A gallery of controls
Qt Quick Controls - 想象風格範例:汽車 An automotive user interface using custom Imagine style assets
Qt Quick Controls - Imagine Style Example: Music Player An audio player user interface using custom Imagine style assets
Qt Quick Controls - Side Panel A persistent side panel with Drawer
Qt Quick Controls - Swipe to Remove Demonstrates removal of list items by swipe gesture
Qt Quick Controls - 文本編輯器 A QML app using Qt Quick Controls and a C++ class to provide a fully-functional rich-text editor application
Qt Quick Controls - To Do List To do list application for iOS
Qt Quick Controls - 可穿戴演示 Demonstrates an application launcher designed for wearable devices

Qt Quick Effect Maker

Wiggly Demonstrates how to use an effect created with the Qt Quick Effect Maker (QQEM)

Qt Remote Objects

Model-View Client Developing a very simple client program which displays the content and changes made on a server
Model-View Server Developing a simple server program that displays and makes changes to a QTreeView which is made available on a Remote Objects network
QML Model-View Client Making a QAbstractItemModelReplica available to QML and using it from QML
QtRemoteObjects Bluetooth LE Example Using QtBluetooth Low Energy (BT LE or BLE for short) as a transport medium with Qt Remote Objects
QtRemoteObjects SSL Example Setting up a secure Remote Object network using QSslSockets
QtRemoteObjects WebSockets Example Using a non-QIODevice-based transport (QWebSocket) with QtRemoteObjects

Qt SCXML

SCXML Calculator An application that implements the Calculator example presented in the SCXML Specification
SCXML FTP Client 使用狀態機實現簡單 FTP 客戶端
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

Qt SQL

Books Shows how to use Qt SQL classes with a model/view framework
Cached Table Example 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
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
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
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
關係錶模型範例 Relational Table Model example shows how to use table views with a relational model to visualize the relations between items in a database
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
錶格模型範例 Table Model example shows how to use a specialized SQL table model with table views to edit information in a database

Qt SVG

SVG 生成器範例
SVG 查看器範例
文本對象範例

Qt Sensors

Sensors Showcase Sensors Showcase example demonstrates sensor usage with visual examples

Qt Serial Bus

CAN Bus Manager Example sends and receives CAN bus frames
Modbus Client Example implements a Modbus client application
Modbus Custom Command Example shows how to handle custom Modbus function codes
Modbus Server Example implements a Modbus server application

Qt Serial Port

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
Serial Terminal Shows how to use various features of QSerialPort

Qt Spatial Audio

Spatial Audio Panning Example Shows some of the capabilities of the spatial audio engine in Qt

Qt State Machine

Move Blocks Move Blocks example shows how to animate items in a QGraphicsScene using a QStateMachine with a custom transition
Ping Pong States Ping Pong States example shows how to use parallel states together with custom events and transitions in Qt State Machine Framework
Rogue Rogue example shows how to use the Qt state machine for event handling
Traffic Light Traffic Light example shows how to use Qt State Machine Overview to implement the control flow of a traffic light

Qt Test

第 1 章:編寫單元測試 如何編寫單元測試
第 2 章:數據驅動測試 How to create data driven tests
第 3 章:模擬 GUI 事件 Howe to simulate GUI events
第 4 章:重演 GUI 事件 How to replay GUI events
第 5 章:編寫基準測試 How to write a benchmark

Qt TextToSpeech

Hello 說話範例 Hello Speak example reads out user-provided text
Quick Speech Example Quick Speech example reads out user-provided text

Qt UI Tools

文本查找器 Dynamically loading .ui files using QUiLoader

Qt Virtual Keyboard

Virtual Keyboard in Qt Quick This example shows how to use the virtual keyboard in a Qt Quick application

Qt Wayland Compositor

Custom Shell Custom Shell shows how to implement a custom shell extension
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
Pure QML Pure QML is an example that demonstrates how to write a Wayland compositor in pure QML
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

Qt WebChannel

Qt WebChannel ChatClient HTML 範例 A HTML/JavaScript client that communicates over a WebSocket with a QWebChannel server
Qt WebChannel ChatClient QML 範例 A QML client that communicates over a WebSocket with a QWebChannel server
Qt WebChannel ChatServer 範例 A simple chat server implemented using the QWebChannel C++ API
Qt WebChannel 獨立範例 A simple chat between a server and a remote client running in a browser

Qt WebEngine

食譜瀏覽器 Injecting custom stylsheets into web pages and providing a rich text preview tool for a custom markup language
WebEngine 內容操縱範例 Demonstrates how to load and manipulate web content
WebEngine Cookie 瀏覽器範例 A cookie browser based on Qt WebEngine Widgets
WebEngine 生命周期範例 Freezes and discards background tabs to reduce CPU and memory usage
WebEngine 通知範例 Demonstrates how to pass HTML5 web notifications to users
WebEngine Push Notifications Example Demonstrates how to subscribe to and unsubscribe from push notifications
WebEngine Quick 納米瀏覽器 A web browser implemented using the WebEngineView QML type
WebEngine Widgets Client Certificate Example A simple client certificate authentication scenario using Qt WebEngine and QSslServer
WebEngine Widgets Html2Pdf 範例 Converts web pages to PDF documents using Qt WebEngine
WebEngine Widgets 地圖範例 Demonstrates how to handle geolocation requests
WebEngine Widgets PrintMe 範例 Demonstrates how to print web pages using Qt WebEngine Widgets
WebEngine Widgets 簡單瀏覽器範例 A simple browser based on Qt WebEngine Widgets
WebEngine Widgets 拼寫檢查器範例 Integrates a spellchecker into a simple HTML form
WebEngine Widgets 視頻播放器範例 Displays full screen video using QWebEngineView

Qt WebSockets

QML WebSocket Client Explains how to write a QML WebSocket client example
QML WebSocket Server A simple example that shows how to use a QML WebSocketServer
Secure WebSocket Echo Client A simple client application using secure WebSockets (wss)
Secure WebSocket Echo Server A simple server to respond to clients over secure WebSockets (wss)
Simple WebSocket Chat A minimal chat application using the WebSocket protocol
WebSocket Echo Client Show how to write a simple WebSocket client application
WebSocket Echo Server Show how to write a simple WebSocket server application

Qt WebView

Qt WebView 範例 - Minibrowser Minibrowser example demonstrates how to use the Qt WebView module with Qt Quick

Qt Widgets

40000 個芯片 可視化具有 40000 個芯片項的巨大圖形視圖場景
地址簿 Address book example shows how to use proxy models to display different views onto data from a single model
仿射變換 Demonstrates how affine transformations in QPainter works
指針式時鍾 Analog Clock example shows how to draw the contents of a custom widget
基本繪製範例 Basic Drawing example shows how to display basic graphics primitives in a variety of styles using the QPainter class
基本圖形布局範例 演示如何創建基本圖形布局
基本布局範例 Shows how to use the standard layout managers
基本排序/過濾模型範例 Basic Sort/Filter Model example illustrates how to use QSortFilterProxyModel to perform basic sorting and filtering
模糊拾取器效果示例 Demonstrates how to apply graphical effects on items in the view
邊框布局範例 Shows how to arrange child widgets along a border
計算器範例 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
日曆範例 Calendar example shows how to create rich text content and display it using a rich text editor
日曆 Widget 範例 Calendar Widget example shows use of QCalendarWidget
字符映射範例 Character Map example shows how to create a custom widget that can both display its own content and respond to user input
圖錶範例 Chart example shows how to create a custom view for the model/view framework
碰撞小鼠範例 Demonstrates how to animate items on a graphics view
色彩編輯器工廠範例 This example shows how to create an editor that can be used by a QItemDelegate
組閤框 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
閤成模式 Demonstrates how Composition Modes work in QPainter
同心圓範例 Demonstrates the improved quality that antialiasing and floating point precision gives
自定義補全器範例 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
簡圖場景示例 演示如何使用圖形視圖框架
數字時鍾範例 Digital Clock example shows how to use QLCDNumber to display a number with LCD-like digits
目錄視圖範例 This example demonstrates the usage of a tree view, and smooth flicking on a touchscreen
停放 Widget 範例 Dock Widgets example shows how to add dock windows to an application. It also shows how to use Qt's rich text engine
拖放拼圖範例 Drag and Drop Puzzle example demonstrates a way of using the drag and drop system with item view widgets
拖放 Robot 範例 Demonstrates how to drag and drop items in a graphics view
可拖拽圖標範例 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
動態布局範例 Shows how to re-orient widgets in running applications
緩和麯綫範例 Easing Curves example shows how to use easing curves to control the speed of an animation
迴顯插件範例 This example shows how to create a Qt plugin
可編輯樹模型範例 This example shows how to implement a simple item-based tree model that can be used with other classes the model/view framework
彈性節點範例 Demonstrates how to interact with graphical items in a scene
嵌入式對話框 Demonstrates how to embed dialogs into a graphics view
褪色消息效果範例 Demonstrates how to apply effects on items in the view
抓取更多範例 Fetch More example shows how to add items to an item view model on demand
手指描繪範例 Shows the use of a touchscreen to make a simple painting application
流式布局範例 Shows how to arrange widgets for different window sizes
字體采樣器範例 Font Sampler example shows how to preview and print multi-page documents
冰箱磁貼範例 Fridge Magnets example illustrates how to move around several types of MIME-encoded data with drag and drop
凍結列範例 This example demonstrates how to freeze a column within a QTableView
采用 Qt Widgets 快速入門編程 A tutorial for Qt Widgets based notepad application
漸變 Shows how gradients can be used with QPainter
圖形視圖流布局範例 Demonstrates flow layout on a graphics view scene
組框範例 Group Box example shows how to use the different kinds of group boxes in Qt
圖標範例 Icons example shows how QIcon can generate pixmaps reflecting an icon's state, mode and size
圖像閤成範例 展示 QPainter 中的閤成模式如何工作
圖像手勢範例 Demonstrates the use of simple gestures in a widget
圖像查看器範例 Example shows how to combine QLabel and QScrollArea to display an image
Interview 此範例演示模型/視圖框架的用法
項視圖拼圖範例 Puzzle example shows how to enable drag and drop with a custom model to allow items to be transferred between a view and another 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
MDI 範例 MDI example shows how to implement a Multiple Document Interface using Qt's QMdiArea class
主窗口 Main Window example shows Qt's extensive support for tool bars, dock windows, menus, and other standard application features
菜單範例 Menus example demonstrates how menus can be used in a main window application
影片範例 Movie example demonstrates how to use QMovie and QLabel to display animations
訂購錶單範例 Order Form example shows how to generate rich text documents by combining a simple template with data input by the user in a dialog
描繪器路徑範例 Painter Paths example shows how painter paths can be used to beuild complex shapes for rendering
路徑描邊 Path Stroking example shows various types of pens that can be used with QPainter
捏閤縮放範例 Shows how to recognize a gesture
像素器範例 Pixelator example shows how delegates can be used to customize the way that items are rendered in standard item views
插件和描繪基本工具範例 A plugin providing the basic tools for painting functionality
插件和描繪範例 Demonstrates how to extend Qt applications using plugins
插件和描繪額外過濾器範例 提供額外過濾器的插件
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 Widgets - Application Example Application example shows how to implement a standard widget application with menus, toolbars, and a status bar. The example itself is a simple text editor program built around QPlainTextEdit
塗鴉範例 Scribble example shows how to reimplement some of QWidget's event handlers to receive the events generated for the application's widgets
設置編輯器範例 Settings Editor example shows how Qt's standard settings support is used in an application by providing an editor that enables the user to view the settings for installed applications, and modify those that can be edited
Shortcut Editor Example 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
簡單錨點布局範例 演示圖形視圖場景中的錨點布局
簡單 DOM 模型範例 Simple DOM Model example shows how an existing class can be adapted for use with the model/view framework
簡單樹模型範例 Simple Tree Model example shows how to use a hierarchical model with Qt's standard view classes
簡單 Widget 映射器範例 Simple Widget Mapper example shows how to use a widget mapper to display data from a model in a collection of widgets
滑塊範例 Sliders example shows how to use the different types of sliders available in Qt: QSlider, QScrollBar and QDial
自鏇框委托範例 Spin Box Delegate example shows how to create an editor for a custom delegate in the model/view framework by reusing a standard Qt editor widget
自鏇框範例 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
標準對話框範例 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
樣式插件範例 This example shows how to create a plugin that extends Qt with a new GUI look and feel
樣式錶範例 Style Sheet Example shows how to use style sheets
樣式範例 Styles example illustrates how to create custom widget drawing styles using Qt, and demonstrates Qt's predefined styles
句法高亮器範例 Syntax Highlighter example shows how to perform simple syntax highlighting
係統托盤圖標範例 System Tray Icon example shows how to add an icon with a menu and popup messages to a desktop environment's system tray
選項卡對話框範例 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
Taking a Screenshot 屏幕截圖範例展示如何對桌麵隨手屏幕截圖
俄羅斯方塊範例 Tetrix example is a Qt version of the classic Tetrix game
文本編輯 Text Edit example shows Qt's rich text editing facilities in action
工具提示範例 工具提示範例展示如何為應用程序 Widget 提供靜態和動態工具提示
觸摸撥盤範例 Shows how to apply touch to a set of standard Qt widgets
觸摸鏇鈕範例 Shows how to create custom controls that accept touch input
變換範例 Transformations example shows how transformations influence the way that QPainter renders graphics primitives
Translucent Background 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
撤消框架範例 This example shows how to implement undo/redo functionality with the Qt undo framework
驗證器範例 Validators example shows the signal emission behavior of input validators
嚮量變形 Demonstrates how to manipulate the elements of a QPainterPath
Widget 圖庫範例 Widgets Gallery example shows widgets relevant for designing UIs
Widget 教程 - 子級 Widget
Widget 教程 - 創建窗口
Widget 教程 - 嵌套布局
Widget 教程 - 使用布局
窗口標誌範例 窗口標誌範例展示如何使用可用於 Qt 的窗口標誌

Qt XML

DOM Bookmarks Application 提供用於 XML 書簽交換語言文件的讀取器