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

qmllint warns about accessing highlightResizeDuration etc from ListView attached property

    XMLWordPrintable

Details

    Description

      import QtQuick
      
      ListView {
          model: 1
          delegate: Text {
              text: ListView.view.highlightResizeDuration
          }
      } 

      Running qmllint/qmlls on this code I get

      > Member "highlightResizeDuration" not found on type "QQuickItemView" [missing-property]

      In https://doc.qt.io/qt-6/qml-qtquick-listview.html#view-attached-prop ListView.view is documented as yielding a ListView, and ListView has a highlightResizeDuration, so I expect this to not trigger warnings.

      The same happens with highlightMoveVelocity and highlightResizeVelocity, but not highlightMoveDuration

      Tested with Qt 6.7 (qtdeclarative b586c4914de1b59743dbcc4dc8ffa974420582e7)

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

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes