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

qmllint complains about QQuickGridViewAttached

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 6.3.1
    • None
    • All

    Description

      Given a GridView with a delegate that wants to access the cellWidth:

      GridView {
        delegate: MouseArea {
          height: GridView.view.cellHeight

      this works perfectly fine, but qmllint complains:

      Warning: Test.qml:192:47: Property "cellHeight" not found on type "QQuickItemView"
                              height: GridView.view.cellHeight
                                                    ^^^^^^^^^^ 

      which is understandable, because QQuickGridViewAttached is derived from QQuickItemViewAttached, but it does not even have a Q_OBJECT macro to turn it into a distinct, known type.

      Attachments

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

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            rgriebl Robert Griebl
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes