Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-76025 Specify the QML language and write a QML-to-C++ compiler
  3. QTBUG-104196

Implement conversions between QQmlListProperty<T> and QList<T *> for object type T

    XMLWordPrintable

Details

    • Technical task
    • Resolution: Unresolved
    • P2: Important
    • 6.x
    • QML: Tooling

    Description

      I run qmllint (recent dev) against example from here and got:

      Cannot assign binding of type QQmlListProperty<QObject> to QList<QObject *>
              buttons: column.children
                       ^^^^^^^^^^^^^^^
      

      code:

      import QtQuick.Controls 2.15
      import QtQuick 2.15
      
      Item {
          ButtonGroup {
              buttons: column.children
          }
      
          Column {
              id: column
      
              RadioButton {
                  checked: true
                  text: qsTr("DAB")
              }
      
              RadioButton {
                  text: qsTr("FM")
              }
      
              RadioButton {
                  text: qsTr("AM")
              }
          }
      }
      

      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
            evgeniy_dushistov evgeniy_dushistov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes