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 ().