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)

        For Gerrit Dashboard: QTBUG-124412
        # Subject Branch Project Status CR V

            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