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

qmllint issues

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • 6.10
    • 6.5.1, 6.7.3
    • QML: Tooling
    • None

    Description

      1. qmllint / Tools->QML->Run Checks looks at the wrong import (=different import than runtime). 
        MVP attached.
        In this MVP, qmllint looks at Controls.MenuBar while the runtime uses content.MenuBar. This results in a misleading [missing-property] error.
      2. Unqualified access warning on BoundaryRule . If I don't have to qualify the "on" property, I shouldn't have to qualify the use of a property from the same object inside the rule.
      BoundaryRule on myProp {
        maximum: myOtherProp //[Unqualified-Access]
      }
      
      1. No MVP, but JS variable show up as "undefined" [missing-property] 

      Test.js

      const myVar = "Hello World"
      

      Main.qml 

      import "qrc:/qt/qml/content/JS/Test.js" as Test
      Window {
        width: 480; height: 480
      
        Text {
          text: Test.myVar //[missing-property] 
        }
      }
      

       

      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
            mairtin.s Mairtin Steinkamp
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes