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

qmllint warns about accessing highlightResizeDuration etc from ListView attached property

XMLWordPrintable

    • 16b49089c (dev), bacd68c6a (6.8)

      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)

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

            fabiankosmale Fabian Kosmale
            nicolasfella Nicolas Fella
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes