PropertyPair Class

(QQmlContext::PropertyPair)
Header: #include <PropertyPair>
qmake: QT += qml
Since: Qt 5.11

Public Variables

QString name
QVariant value

Detailed Description

This struct contains a property name and a property value. It is used as a parameter for the setContextProperties function.

See also QQmlContext::setContextProperties().

© The Qt Company Ltd
Licensed under the GNU Free Documentation License, Version 1.3.
https://doc.qt.io/qt-5.12/qqmlcontext-propertypair.html