Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-105127

doc: Bindable Properties

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.3.0
    • None

    Description

      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.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            cnn Qt Core & Network
            paeglis Gatis Paeglis
            Vladimir Minenko Vladimir Minenko
            Alex Blasche Alex Blasche
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes