Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-84909 Use QProperty in QML/Quick classes
  3. QTBUG-85031

Investigate generating better error messages for QProperty ← Qt::makePropertyBinding assignment

    XMLWordPrintable

    Details

    • Type: Sub-task
    • Status: Reported
    • Priority: P3: Somewhat important
    • Resolution: Unresolved
    • Fix Version/s: 6.1
    • Component/s: None
    • Labels:
    • Technical Risk:
      Normal

      Description

      If we have a property

      QProperty<float>
      

      and assign a binding created by

      Qt::makePropertyBinding([](){ return 42; })
      

      we get an error, because of the float/integer mismatch. This is especially egregious in the case of Q_PRIVATE_PROPERTY, where there's some additional macro indirection. It is unlikely that we can fix the underlying problem, but maybe we can create a nicer error.

        Attachments

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

          Activity

            People

            Assignee:
            fabiankosmale Fabian Kosmale
            Reporter:
            fabiankosmale Fabian Kosmale
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes