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

qmllint: unknown attached property scope ScrollBar

    XMLWordPrintable

    Details

    • Commits:
      5cfce9f41cf5d07d2d61da5157db918ef18de561 (qt/qtdeclarative/dev)

      Description

      For such code:

      import QtQuick 2.15
      import QtQuick.Controls 2.15
      
      Flickable {
          ScrollBar.vertical: ScrollBar {
              active: true
              onActiveChanged: {
                  if (!active)
                      active = true;
      
              }
          }
      }
      

      qmllint (dev, 077b8f8df437d1cfcf67b153dd4535c36786bdee) reports warnings:

      Warning: Test20.qml:5:15: Property "vertical" is invalid or does not exist
          ScrollBar.vertical: ScrollBar {
                    ^^^^^^^^
      Warning: Test20.qml:5:5: unknown attached property scope ScrollBar.
          ScrollBar.vertical: ScrollBar {
          ^^^^^^^^^
      

      but "qml" tools work just fine.

        Attachments

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

          Activity

            People

            Assignee:
            max.goldstein Maximilian Goldstein
            Reporter:
            evgeniy_dushistov evgeniy_dushistov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes