-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
6.3.0
-
None
QUntypedBindable QMetaProperty::bindable(QObject *object) const
-->
bool QUntypedBindable::setBinding(const QUntypedPropertyBinding &binding)
no docs exists for QUntypedPropertyBinding (there is no clickable link).
Looking at auto test here: https://codereview.qt-project.org/c/qt/qtbase/+/311115/20/tests/auto/corelib/kernel/qproperty/tst_qproperty.cpp#1194 I see:
QMetaProperty fooProp = object.metaObject()->property(fooIndex);
QVERIFY(fooProp.isValid());
auto fooBindable = fooProp.bindable(&object);
QVERIFY(fooBindable.isValid());
QVERIFY(fooBindable.isBindable());
QVERIFY(!fooBindable.hasBinding());
fooBindable.setBinding(Qt::makePropertyBinding(f));
No docs for Qt::makePropertyBinding() seem to exist online.