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

qmlint: Cannot compile binding from QPointF

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • 6.x
    • 6.4.0
    • QML: Compiler
    • All

    Description

      The following code:

      // C++:
      class MyClass : public QObject
      {
      	Q_OBJECT
      	Q_PROPERTY(QVector<QPointF> points ...)
      }
      
      // Qml:
      Rectangle {
      	x: MyClass.points[0].x
      	y: MyClass.points[0].y
      }
      

      results in this error:

      :-1: error: Test.qml:1:106: Could not compile binding for x: Cannot load property x from conversion to QVariant.
      :-1: error: Test.qml:2:106: Could not compile binding for y: Cannot load property y from conversion to QVariant.
      

      Attachments

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

        Activity

          People

            qtqmlteam Qt Qml Team User
            Harald Meyer Harald Meyer
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes