基于警报应用程序的 Qt Quick 教程。 | |
为肖象设备设计的 QML APP,它使用自定义组件、采用 AnimationController 动画化、并为应用程序逻辑编写 JavaScript。 | |
演示使用 ListView 类型去显示由 ListModel 生成的数据,及使用 SpringAnimation 类型去动画图像的 QML 时钟应用程序。 | |
A Qt Quick game for touch devices that uses SpriteSequence, ParticleSystem, Emitter, and Wander types to animate objects and the SoundEffect type to play sound effects. | |
用于触摸设备的 QML 应用程序,使用具有 FolderListModel 的 Repeater 访问文件夹内容,使用包含 MouseArea 的 PinchArea 处理抓取内容的捏合手势。 | |
A QML photo viewer that that uses XmlListModel and XmlRole to download Flickr feeds, and Package to display the photos in different views. | |
A QML RSS news reader that uses XmlListModel and XmlRole to download XML data, ListModel and ListElement to create a category list, and ListView to display the data. | |
Kuniaki Moribe 流行益智游戏的 QML 实现。 | |
用于 NASDAQ-100 的可配置库存图表。 | |
带 3D 效果的 Twitter 搜索客户端。 |
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 | |
Hierarchy example is shows how to write an in-process ActiveX control. The control is a QWidget subclass with child widgets that are accessible as sub-types | |
Media Player example uses the Microsoft Media Player ActiveX control to implement a functional media player application | |
Menus example demonstrates the use of QMenuBar and QStatusBar in a QMainWindow to implement an in-place active control | |
Multiple example demonstrates the implementation of a QAxFactory to provide multiple ActiveX controls in a single in process ActiveX server using the QAXFACTORY_EXPORT() macro. The ActiveX controls in this example are simple QWidget subclasses that reimplement QWidget::paintEvent() | |
OpenGL example demonstrates the use of the default factory and QAxFactory::isServer(), and the implementation of an additional COM interface using QAxBindable and QAxAggregated. The server executable can run both as an ActiveX server and as a stand-alone application | |
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 | |
Simple example demonstrates the use of QAxBindable and QAxFactory | |
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 |
演示在 Qt3D 中创建高级材质 | |
演示组合 Qt 3D 渲染和 Qt Quick 2 元素 | |
展示由 Qt 3D 提供的 4 个基本形状,并为每个形状设置网格 | |
QML 范例演示从多个视口渲染场景图形 | |
QML 应用程序演示使用 PBR 材质 | |
演示组合 Qt 3D 渲染和 Qt Quick 2 元素 | |
QML 应用程序演示在 Qt 3D 场景中使用 Qt Quick 2 | |
QML 应用程序演示可视化 3D 场景 | |
基于 QWidget 的应用程序采用 QML 场景包含 3D 场景 | |
A QML application that demonstrates visualizing multiple 3D scenes using Scene3D and Scene3DView | |
Qt 3D QML 应用程序说明如何在带阴影的 Qt 3D 中渲染场景 | |
演示如何在 Qt 3D 渲染场景的 C++ 应用程序 | |
演示在 Qt 3D 中创建自定义材质 | |
QML 应用程序演示如何在 Qt 3D 中渲染场景 | |
QML 应用程序演示如何使用顶点着色器和几何着色器 | |
Qt 3D QML 应用程序实现单通线框渲染方法 |
Demonstrates working with custom Android activities | |
Demonstrates how to run an Android service in a separate process using a separate .so lib file, and how to communicate with Qt using a BroadcastReceiver | |
Demonstrates how to run an Android service in a separate process, and how to communicate with Qt using a BroadcastReceiver | |
Demonstrates how to run an Android service in a separate process, and how to communicate between the service process and the main process using QAndroidBinder | |
Demonstrates how to run an Android service in a separate process, and how to communicate between the service process and the main process using Qt Remote Objects | |
Demonstrates how to run an Android service in a separate process using the same lib file, and how to communicate between the service process and the main process using Qt Remote Objects | |
Demonstrates how to run an Android service in the main process, and how to communicate between QML/C++ and a Java service | |
Demonstrates communication between Java code and QML or C++ using NJI calls | |
Demonstrates how to exchange data from complex Java objects | |
Demonstrates calling Java code from an Android application |
使用和控制 Qt Assistant 作为帮助查看器 | |
使用 Qt Assistant 作为应用程序的自定义帮助查看器 |
An example showing communication through Bluetooth | |
An example showing the use of Bluetooth Object Push Profile (OPP) | |
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 | |
An example demonstrating communication through Bluetooth QML API | |
A QML example showing Bluetooth communication | |
An example showing how to locate Bluetooth devices | |
An example showing the use Bluetooth Object Push Profile (OPP) | |
A QML example about locating Bluetooth devices |
Example shows how to create a simple area chart | |
This example shows the drawing of dynamic data (microphone input) | |
Example shows how to create a bar chart | |
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 | |
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 | |
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 | |
This is a demonstration of how to use axes in your QML application | |
This basic demonstration shows how to use the different chart types by using qml | |
This example shows you how to create your own custom legend | |
This application shows you how to customize different visual properties of a ChartView and series | |
This application demonstrates how to use XmlListModel as a datasource for a Chart | |
Example shows how to implement application with strict performance requirements using the Qt Charts QML API | |
This is a demonstration on how to use a polar chart in your QML application | |
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 | |
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 |
Creating a simple console application that communicates with a CoAP server | |
使用 CoAP 客户端采用 Qt Quick 用户界面进行多点播送资源探索 | |
Securing the CoAP client and using it with a Qt Quick user interface | |
Creating an application that communicates with a CoAP server |
演示如何异步缩放图像 | |
演示如何同步比例缩放图像 | |
演示如何监视活动进程的进度 | |
演示如何使用 map-reduce (映射缩减) 算法 | |
演示如何并发运行标准函数 |
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 | |
Custom Type example shows how to integrate a custom type into Qt's meta-object system | |
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 | |
Shows the hierarchy of MIME types and can be used to determine the MIME type of a file | |
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 | |
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 |
演示应用程序实例之间的通信 | |
Demonstrates usage of the Qt D-Bus typesystem | |
Shows how to access the D-Bus bus daemon service | |
Demonstrates a simple message system using D-Bus | |
Shows how to use Qt D-Bus to control a car from another application |
Simple application showing real time audio data | |
Implementing a custom input handler to support axis dragging | |
Using Q3DBars in a widget application | |
Implementing custom input handler in a widget application | |
Adding custom items to a surface graph | |
Using Q3DBars with a custom proxy | |
Using an item model as data source for Q3DBars | |
Implementing axis dragging in QML | |
Example of a hybrid C++ and QML application demonstrating different axis formatters | |
Using Bars3D in a QML application | |
Customizing input in a QML application | |
Showing graph legend in a QML application | |
Showing multiple graphs simultaneously in a QML application | |
Example of a hybrid C++ and QML application | |
Using Scatter3D in a QML application | |
Showing spectrogram graph in a QML application | |
Using Surface3D in a QML application | |
Using multiple series with Surface3D in a QML application | |
Using rotated scatter items | |
Using Q3DScatter in a widget application | |
Using Q3DSurface in a widget application | |
Using texture with Q3DSurface | |
Rendering volumetric objects |
Creating a user interface from a Qt Designer form at run-time | |
在应用程序中使用采用 Qt Designer 创建的表单 | |
Creating a custom multi-page plugin for Qt Designer | |
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 | |
Creating forms with Qt Designer that contain custom widgets that can be dynamically generated at run-time | |
Creating a custom widget plugin for Qt Designer that uses signals and slots |
Analog Clock Window example shows how to draw the contents of a custom window | |
Shows the basics of using QVulkanWindow | |
Shows the basics of rendering with textures in a QVulkanWindow | |
Shows the basics of rendering with QVulkanWindow and the Vulkan API | |
Shows the usage of QVulkanWindow in QWidget applications | |
Shows the basics of using QVulkanWindow | |
This example shows how to create a minimal QWindow based application for the purpose of using OpenGL | |
This example shows how to create a minimal QWindow based application using QPainter for rendering |
Enables configuring the gamepad buttons | |
Demonstrates how to use navigation keys on the gamepad | |
Depicts joystick movement using a pointer | |
Demonstrates how to interact with the gamepad using QML | |
A simple example demonstrating the APIs in use |
Using the QHelpEngineCore class to implement context-sensitive help for applications |
A Qt Quick application using Qt Insight Tracker |
A CLI client for discovering KNX/netIP servers on the network | |
A KNX client for handling KNX local device management and tunneling | |
A KNX client for handling KNXnet/IP group communication | |
A KNX client for handling KNXnet/IP local device management | |
A client that displays information about group addresses contained in a KNX project | |
A KNX client for handling KNXnet/IP tunneling features | |
A CLI client using a QKnxNetIpRouter | |
A client that creates a tunnel connection to a KNX/netIP server |
理解 Qt Linguist 上下文概念和使用 2 种或多种语言 | |
将小 Hello World 程序翻译成拉丁语 | |
更新用于稍后发行的翻译 |
Map Viewer example shows how to display and interact with a map, search for an address, and find driving directions | |
How to use transitions together with MapItemView | |
Minimum code to display a map using Qt Quick | |
Places example demonstrates how to search for Places and access related content | |
Places List example demonstrates how to search for and display a list of places using a ListView | |
Places Map example demonstrates how to search for and display a list of places on a map using a MapItemView | |
Plane Spotter example demonstrates the tight integration of location and positioning data types into QML |
Creating a application that communicates with an MQTT broker | |
Registering QMqttClient to QML and using it in a Qt Quick user interface | |
Creating a minimalistic telemetry application | |
Combining an MQTT client with a web socket connection |
Demonstrates using functions from the QtMac namespace | |
Demonstrates embedding a QWindow into an view hierarchy of a macOS application | |
Demonstrates using QMacPasteboardMime class |
Testing the available audio devices and their configuration | |
Recording audio using the QAudioInput class | |
Enabling audio playback using the QAudioOutput class | |
Discovering the available devices and supported codecs | |
Enabling 3D sound control using the Qt Audio Engine API | |
Camera Example shows how to use the API to capture a still image or video | |
Demonstrates using the Radio QML type from Qt Multimedia | |
播放音频和视频 | |
Camera Example shows how to use the API to capture a still image or video | |
Transforming video and camera viewfinder content | |
Applying shader effects on video and camera viewfinder content | |
Analyzing a raw audio stream using the FFTReal library | |
Streaming video on a graphics scene | |
实现视频播放器 Widget |
An example showing reading from formatted NFC Data Exchange Format (NDEF) messages | |
An example about reading and writing NFC Data Exchange Format (NDEF) messages to NFC Forum Tags | |
A QML example about displaying NFC Data Exchange Format (NDEF) messages | |
A QML example about reading and displaying NFC Data Exchange Format (NDEF) messages |
演示如何为网络服务创建客户端 | |
演示如何通过本地网络接收广播信息 | |
Demonstrates how to broadcast information to multiple clients on a local network | |
This example demonstrates how to implement client-side DTLS connections | |
This examples demonstrates how to implement a simple DTLS server | |
演示如何为网络服务创建客户端 | |
演示如何为网络服务创建服务器 | |
获得谷歌搜索引擎的搜索推荐列表 | |
演示简单 HTTP 客户端 | |
演示在本地主机中的客户端-服务器通信 | |
演示如何接收发送给多点播送组的信息 | |
演示如何把消息发送给多点播送组 | |
演示有状态点对点聊天客户端 | |
演示如何在多下载中使用网络 API | |
演示如何使用网络 API 进行多次下载 | |
演示如何通过加密 SSL (安全套接字层) 连接通信 | |
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 | |
演示复杂 TCP/IP 操作 |
演示采用 OAuth 2 进行身份验证以访问 Reddit | |
演示采用 OAuth 进行身份验证以访问 Twitter 时间线 |
使用模型/视图方式在树视图中显示 OPC UA 服务器的所有节点 | |
展示如何生成密钥和证书签名请求 | |
与 OPC UA 服务器交互为简单机器构建基于 QML 的 HMI (人机界面) | |
与 OPC UA 服务器交互为简单机器构建基于 QML 的 HMI (人机界面) |
2D Painting example shows how QPainter and QOpenGLWidget can be used together to display accelerated 2D graphics on supported hardware | |
Cube OpenGL ES 2.0 example shows how to write mouse rotateable textured 3D cube using OpenGL ES 2.0 with Qt. It shows how to handle polygon geometries efficiently and how to write simple vertex and fragment shader for programmable graphics pipeline. In addition it shows how to use quaternions for representing 3D object orientation | |
Hello GL2 example demonstrates the basic use of the OpenGL-related classes provided with Qt | |
Hello GLES3 example demonstrates easy, cross-platform usage of OpenGL ES 3.0 functions via QOpenGLExtraFunctions in an application that works identically on desktop platforms with OpenGL 3.3 and mobile/embedded devices with OpenGL ES 3.0 | |
Textures example demonstrates the use of Qt's image classes as textures in applications that use both OpenGL and Qt to display graphics |
渲染 PDF 文档 |
GeoFlickr example shows how to use the user's current position to fetch local content from a web service | |
Logfile Position Source shows how to create and work with a custom NMEA position source, for platforms without GPS | |
SatelliteInfo example shows how the available satellites at the user's current position and marks the satellites currently contributing to the GPS fix as pink | |
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 |
QtHangman is an example that demonstrates how to use the Qt Purchasing API with Qt Quick |
Implements a custom network access manager for the QML engine | |
导出 C++ 类 | |
附加特性 | |
绑定 | |
默认特性 | |
扩展对象 | |
分组特性 | |
C++ 继承和强制转换 | |
方法支持 | |
导出 C++ 特性 | |
特性值源 | |
信号支持 | |
此范例演示创建动态组件 | |
这是国际化范例 | |
This example creates a C++ plugin extension by subclassing QQmlEngineExtensionPlugin | |
This is a collection of XMLHttpRequest examples | |
关于采用 Qt C++ 扩展 QML 的教程 |
如何采用 QQuickImageProvider 加载 QML 图像 | |
How to load images asynchronously in QML | |
Shows how to use a QAbstractItemModel subclass as a model in QML | |
Shows how to use a QList
|
|
Shows how to use a QStringList as a model in QML | |
QML Advanced Tutorial 1 - Creating the Game Canvas and Blocks |
|
QML Dynamic View Ordering Tutorial 1 - A Simple ListView and Delegate |
|
Shows how to render a Qt Quick scene into a texture that is then used by a non-Quick based OpenGL renderer | |
This example demonstrates the implementation of accessible buttons | |
This is a collection of QML Animation examples | |
This is a collection of QML Canvas examples | |
This is a collection of QML drag and drop examples | |
This is a collection of QML examples relating to image types | |
This is a collection of QML keyboard interaction examples | |
A collection of QML local storage examples | |
This is an example of the MouseArea type in QML | |
This is a collection of QML Positioner examples | |
This is a collection of QML Right to Left examples | |
A Qt Quick example demonstrating the use of shader effects | |
A Qt Quick example demonstrating the use of shape items | |
This is a collection of QML examples relating to text | |
This is a collection of QML multithreading examples | |
A collection of QML Touch Interaction examples | |
这是 QML 模型/视图范例的集合 | |
This example demonstrates the Window and Screen types in QML | |
This is an example of drag-and-drop among QML applications | |
演示如何使用布局类型来排列 UI | |
这是使用 QML 粒子系统 Affector 范例的集合 | |
This is a collection of examples using CustomParticle in the QML particle system | |
This is a collection of examples using Emitters in the QML particle system | |
这是使用 QML 粒子系统 Affector 范例的集合 | |
这是使用 QML 粒子系统 Affector 范例的集合 | |
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 | |
Pixelator example shows how a QML TableView and a delegate can be used for custom table models | |
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 | |
Shows how to integrate drawing via the native graphics API with the Qt Quick scene graph | |
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 | |
Shows how to use a texture created directly with Metal | |
Shows how to render directly with Metal under a Qt Quick scene | |
Shows how to render OpenGL under a Qt Quick scene | |
Shows how to implement QPainter-based custom scenegraph items | |
Shows how to use FramebufferObjects with Qt Quick | |
Shows how to use FramebufferObjects in a thread together with Qt Quick | |
Shows how to define a scene graph material to fill a shape | |
Shows how to combine two textures from two texture providers in a custom scene graph node | |
Shows how to use a texture created directly with use a texture created directly withulkan | |
Shows how to render directly with vulkan under a Qt Quick scene | |
TabWidget example shows how to create a tabwidget using property aliases and QML Object default properties | |
Threaded ListModel example shows how to use a ListModel from multiple threads using WorkerScript | |
Dial Control Example shows how to create a speedometer-type dial | |
Flipable Example shows an item that flips whenever clicked, rotating around the y-axis | |
Scroll Bar Example shows how to use scroll bars on a flickable element |
Demonstrates the antialiasing modes in Qt Quick 3D | |
Demonstrates the use of some Material Library materials | |
Demonstrates the use of custom vertex and fragment shaders | |
Demonstrates dynamic model creation | |
Demonstrates how to use a 2D layer as a 3D texture | |
Demonstrates how to render 2D and 3D objects together in Qt Quick 3D | |
Demonstrates the use of different light types | |
Demonstrates picking of models | |
Demonstrates the use of Principled Material | |
Demonstrates the use of Qt Quick Items in Quick 3D scene | |
Demonstrates how to render a simple scene in Qt Quick 3D | |
Demonstrates the use of View3D to show a scene from multiple cameras |
Tutorial about writing a basic chat client using Qt Quick Controls | |
A QML app using Qt Quick Controls and a C++ class that implements a simple contact list | |
A QML app using Qt Quick Controls and a QML plugin with customized controls | |
A gallery of controls | |
An automotive user interface using custom Imagine style assets | |
An audio player user interface using custom Imagine style assets | |
A persistent side panel with Drawer | |
Demonstrates removal of list items by swipe gesture | |
A QML app using Qt Quick Controls and a C++ class to provide a fully-functional rich-text editor application | |
Demonstrates an application launcher designed for wearable devices |
Demonstrates the use of Calendar control | |
An example for the TreeView control | |
A collection of components for a classic desktop-style UI | |
Demonstrates custom styles | |
An example for the TableView control | |
A QML app using Qt Quick Controls and a C++ class to provide a fully-functional rich-text editor application | |
Demonstrates UI controls for a touch interface | |
Demonstrates how to separate the application logic from the UI |
This example demonstrates the system dialog types in QML |
A car dashboard created using several CircularGauge controls | |
An interactive showcase of the flat style | |
An interactive showcase of the various controls |
A widget-based application that implements the Calculator example presented in the SCXML Specification | |
A Qt Quick application that implements the Calculator example presented in the SCXML Specification | |
使用状态机实现简单 FTP 客户端 | |
Invokes a dynamically loaded nested state machine | |
Invokes a compiled nested state machine | |
A widget-based application that sends data to and receives it from a dynamically loaded ECMAScript data model | |
A widget-based application that sends data to and receives it from a compiled ECMAScript data model | |
Sends data to and receives it from a C++ data model | |
A Qt Quick application that sends data to and receives it from a dynamically loaded ECMAScript data model | |
A Qt Quick application that sends data to and receives it from a compiled ECMAScript data model | |
Encapsulates the internal logic of an application in an SCXML file | |
Presents the use of SCXML in a sudoku game | |
A widget-based application that uses a dynamically loaded state machine to implement a traffic light | |
A widget-based application that uses a compiled state machine to implement a traffic light | |
A Qt Quick application that uses a dynamically loaded state machine to implement a traffic light | |
A Qt Quick application that uses a compiled state machine to implement a simplified traffic light | |
A Qt Quick application that uses a compiled state machine to implement a traffic light |
Shows how to use Qt SQL classes with a model/view framework | |
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 shows how to read data from a database as well as submit changes, using the QSqlRelationalTableModel and QDataWidgetMapper classes | |
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 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 example shows how a data browser can be used to visualize the results of SQL statements on a live database | |
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 |
AccelBubble example demonstrates the Accelerometer QML type | |
Sensor gesture example demonstrates the steps for creating a C++ application that uses sensor gestures and the included shake sensor | |
Demonstrates how to read the meta-data of available sensors | |
Qt Sensors - Grue sensor example demonstrates all the steps from creating a new sensor to using it | |
Maze example demonstrates the TiltSensor QML type | |
QtSensors - QML example demonstrates the QML sensors types in the QtSensors 5 import | |
Demonstrates the use of SensorGesture QML type | |
Sensor gesture example demonstrates the steps for creating a QML application that uses sensor gestures and the included shake sensor |
Example sends and receives CAN bus frames | |
Example implements a Modbus master application | |
Example implements a Modbus slave application |
Shows how to use the synchronous API of QSerialPort in a worker thread | |
Shows how to use the synchronous API of QSerialPort in a non-GUI thread | |
Shows how to get information about serial devices in a system | |
Shows how to receive data asynchronously over serial port | |
Shows how to receive data synchronously over serial port | |
Shows how to send data asynchronously over serial port | |
Shows how to send data synchronously over serial port | |
Shows how to display information about serial devices in a system | |
Shows how to use various features of QSerialPort |
Hello Speak example reads out a small piece of text |
如何编写单元测试 | |
How to create data driven tests | |
Howe to simulate GUI events | |
How to replay GUI events | |
How to write a benchmark |
在应用程序中使用采用 Qt Designer 创建的表单 | |
Dynamically loading .ui files using QUiLoader |
This is a basic QML example that uses the virtual keyboard |
IVI Compositor is an example that demonstrates how to use the IviApplication extension | |
Minimal QML is a simple example that demonstrates how to write a Wayland compositor in QML | |
Multi Output is an example that demonstrates a compositor with multiple outputs | |
Multi Screen is a desktop-style Wayland compositor for multiple screens | |
Overview Compositor shows how to switch between clients in a grid | |
Pure QML is an example that demonstrates how to write a Wayland compositor in pure QML | |
QWindow Compositor is an example that demonstrates how to write a Wayland compositor in C++ | |
Qt Wayland Compositor Examples - Sever Side Decoration Compositor |
Server Side Decoration Compositor is a simple example that demonstrates server side window decorations on xdg-shell |
Spanning Screens is an example that demonstrates how to let Wayland clients span multiple screens |
A HTML/JavaScript client that communicates over a WebSocket with a QWebChannel server | |
A QML client that communicates over a WebSocket with a QWebChannel server | |
A simple chat server implemented using the QWebChannel C++ API | |
A simple chat between a server and a remote client running in a browser |
渲染 PDF 文档 | |
A simple browser implemented using WebEngineActions | |
Demonstrates how to load and manipulate web content | |
A cookie browser based on Qt WebEngine Widgets | |
Freezes and discards background tabs to reduce CPU and memory usage | |
Demonstrates how to integrate a web engine in a hybrid desktop application | |
Demonstrates how to pass HTML5 web notifications to users | |
Customizes UI elements of Qt WebEngine's dialogs | |
Displays a web page using the Qt Quick integration of Qt WebEngine | |
A web browser implemented using the WebEngineView QML type | |
A small hybrid application based on the WebEngineView QML type and Qt Quick Controls 2 | |
Demonstrates how to inject CSS into web pages using user scripts | |
Converts web pages to PDF documents using Qt WebEngine | |
Demonstrates how to handle geolocation requests | |
Displays a web page using Qt WebEngine Widgets | |
Demonstrates how to print web pages using Qt WebEngine Widgets | |
A simple browser based on Qt WebEngine Widgets | |
Integrates a spellchecker into a simple HTML form | |
Displays full screen video using QWebEngineView | |
Displays HTML over a custom scheme |
Describes how to use the WebSocket API for creating a simple echo client | |
Shows how to create a simple server application that sends back the messages it receives | |
Explains how to program a QML WebSocket client example | |
A simple example that shows how to use a QML WebSocketServer | |
Shows how to use the QWebSocket class to implement an echo client over a secure connection (wss) | |
Shows how to use the QWebSocketServer class for implementing a simple echo server over secure sockets (wss) | |
Shows how to use the QWebSocket and QWebSocketServer classes for creating a minimalistic chat application over the WebSocket protocol |
Minibrowser example demonstrates how to use the Qt WebView module with Qt Quick |
可视化具有 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 | |
Demonstrates anchor layout in a graphics view scene | |
Animated Tiles example animates items in a graphics scene | |
Application example shows how to implement a standard GUI application with menus, toolbars, and a status bar. The example itself is a simple text editor program built around QPlainTextEdit | |
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 | |
Combines advanced OpenGL rendering with the Graphics View framework | |
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 | |
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 | |
Class Wizard example shows how to implement linear wizards using QWizard | |
Code Editor example shows how to create a simple editor that has line numbers and that highlights the current line | |
Demonstrates how to animate items on a graphics view | |
This example shows how to create an editor that can be used by a QItemDelegate | |
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 | |
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 | |
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 | |
This example creates a widget similar to QLabel, that elides the last visible line, if the text is too long to fit the widget's geometry | |
Demonstrates how to embed dialogs into a graphics view | |
Event Transitions example shows how to use event transitions, a feature of The State Machine Framework | |
Extension example shows how to add an extension to a QDialog using the QAbstractButton::toggled() signal and the QWidget::setVisible() slot | |
Factorial States example shows how to use The State Machine Framework to calculate the factorial of an integer | |
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 | |
A dialog for finding files in a specified folder | |
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 | |
A tutorial for Qt Widgets based on a 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 | |
Internationalization (I18N) example demonstrates Qt's support for translated text. Developers can write the initial application text in one language, and translations can be provided later without any modifications to the code. It also demonstrates how to detect the system language settings and show the UI in the appropriate language | |
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 | |
此范例演示模型/视图框架的用法 | |
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 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 | |
'Mouse Button Tester' example demonstrates how to reimplement mouse events within a custom class. You can also use this program to verify that Qt is actually receiving mouse events from your mouse | |
Move Blocks example shows how to animate items in a QGraphicsScene using a QStateMachine with a custom transition | |
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 | |
Demonstrates how to create animated user interface | |
Painter Paths example shows how painter paths can be used to beuild complex shapes for rendering | |
Describes how to code the user interface of the Address Book Example. This first part covers the design of the basic graphical user interface (GUI) for our address book application | |
Describes the code for inserting records in the Address Book Example | |
Explains the code that enables navigating the contacts | |
Explains how to add edit and remove functionality | |
Describes how to add a find function | |
Describes how to add save and load functionality | |
Describes how to export data in VCard format | |
Path Stroking example shows various types of pens that can be used with QPainter | |
Shows how to recognize a gesture | |
Ping Pong States example shows how to use parallel states together with custom events and transitions in The State Machine Framework | |
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 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 | |
Regular Expressions (RegExp) 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 | |
Rogue example shows how to use the Qt state machine for event handling | |
SDI example shows how to create a Single Document Interface. It uses a number of top-level windows to display the contents of different text files | |
屏幕截图范例展示如何对桌面随手屏幕截图 | |
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 | |
Shaped Clock example shows how to apply a translucent background and a widget mask to a top-level widget to produce a shaped window | |
演示图形视图场景中的锚点布局 | |
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 | |
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 | |
States example shows how to use the Qt state machine to play animations | |
Stickman example shows how to animate transitions in a state machine to implement key frame animations | |
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 | |
This example shows Qt's ability to combine the animation framework and the state machine framework to create a game | |
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 | |
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 | |
Traffic Light example shows how to use The State Machine Framework to implement the control flow of a traffic light | |
Transformations example shows how transformations influence the way that QPainter renders graphics primitives | |
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 | |
Two-way button example shows how to use The State Machine Framework to implement a simple state machine that toggles the current state when a button is clicked | |
This example shows Qt's undo framework in action | |
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 | |
演示图形视图场景中的锚点布局 | |
Widgets Gallery example shows widgets relevant for designing UIs | |
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 的窗口标志 |
演示访问包含在 Windows 二进制文件中的图标 | |
演示管理 Windows DWM (桌面窗口管理器) 特征、跳转列表、任务栏按钮叠加和缩略图工具栏 | |
演示在 Qt Quick 中使用 QtWinExtras |
提供用于 XML 书签交换语言文件的读取器 | |
演示如何读写 XBEL 文件 | |
读取输入文件并写入标准输出文件的命令行工具 |
Using XQuery and the xmlpatterns command line utility to query C++ source code | |
Using Qt XML Patterns for querying non-XML data that is modeled to look like XML | |
Using Qt XML Patterns to query XML data loaded from a file | |
Using Qt XML Patterns to validate XML with a W3C XML Schema |