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

qmllint: Warning: Type of property "model" not found

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 6.3
    • 6.0.0
    • QML: Tooling

    Description

      Clone https://code.qt.io/cgit/qt-extensions/qtquickcalendar.git/ and run:

      find src/imports -name "*.qml" -exec ~/dev/qt-dev-debug-non-fw/qtbase/bin/qmllint {} \; &> /tmp/qmllint.txt
      

      The error comes from https://codereview.qt-project.org/c/qt/qtquickcontrols2/+/298316/4/src/imports/calendar/doc/snippets/qtlabscalendar-calendarmodel.qml:

      Warning: Type of property "model" not found at src/imports/calendar/doc/snippets/qtlabscalendar-calendarmodel.qml:50:16
              month: model.month
                     ^^^^^
      

      There is a model property in the root scope that belongs to ListView that might be confusing it?

      Attachments

        Issue Links

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

          Activity

            People

              qtqmlteam Qt Qml Team User
              mitch_curtis Mitch Curtis
              Votes:
              2 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes