头: | #include <PropertyPair> |
qmake: | QT += qml |
Since: | Qt 5.11 |
QString | name |
QVariant | value |
This struct contains a property name and a property value. It is used as a parameter for the
setContextProperties
函数。
另请参阅 QQmlContext::setContextProperties ().