C++ API 由 Qt QML 模塊提供。 更多...
| QtQml | Provides functions for producing logging messages for QML types |
| QQmlContext::PropertyPair | |
| QJSEngine | 用於估算 JavaScript 代碼的環境 |
| QJSValue | Acts as a container for Qt/JavaScript data types |
| QJSValueIterator | 用於 QJSValue 的 Java 風格迭代器 |
| QQmlAbstractUrlInterceptor | Allows you to control QML file loading |
| QQmlApplicationEngine | 從單個 QML 文件加載應用程序的便捷方式 |
| QQmlComponent | 封裝 QML 組件定義 |
| QQmlContext | 在 QML 引擎中定義上下文 |
| QQmlEngine | 用於實例化 QML 組件的環境 |
| QQmlError | 封裝 QML 錯誤 |
| QQmlExpression | 評估 QML 上下文中的 JavaScript |
| QQmlExtensionPlugin | 用於自定義 QML 擴展插件的抽象基 |
| QQmlFileSelector | A class for applying a QFileSelector to QML file loading |
| QQmlImageProviderBase | Used to register image providers in the QML engine |
| QQmlIncubationController | Instances drive the progress of QQmlIncubators |
| QQmlIncubator | Allows QML objects to be created asynchronously |
| QQmlListProperty | Allows applications to expose list-like properties of QObject-derived classes to QML |
| QQmlListReference | Allows the manipulation of QQmlListProperty properties |
| QQmlNetworkAccessManagerFactory | Creates QNetworkAccessManager instances for a QML engine |
| QQmlParserStatus | Updates on the QML parser state |
| QQmlProperty | Abstracts accessing properties on objects created from QML |
| QQmlPropertyMap | Allows you to set key-value pairs that can be used in QML bindings |
| QQmlPropertyValueSource | Interface for property value sources such as animations and bindings |
| QQmlScriptString | 封裝腳本及其上下文 |
要包括模塊類定義,使用以下指令:
#include <QtQml>
要鏈接到模塊,添加此行到
qmake
.pro
文件:
QT += qml
Qt QML 模塊的更多有關信息,見 Qt QML 模塊文檔編製。