PropertyPair Class

( QQmlContext::PropertyPair )
头: #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 ().