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

qmllint: No useful warning message for Qt.foo vs Foo replacement singleton

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • 6.9
    • 6.6.0
    • QML: Tooling
    • None

    Description

      The following code works as expected:

      import QtQuickText {
          text: Qt.application.layoutDirection === Qt.LeftToRight ? "ltr" : "rtl"
      } 

      However qmllint doesn't like it:

      Warning: app.qml:5:26: Member "layoutDirection" not found on type "QQmlApplication" [missing-property]
      
          text: Qt.application.layoutDirection === Qt.LeftToRight ? "ltr" : "rtl"
      
                               ^^^^^^^^^^^^^^^
      

      despite the property layoutDirection being there and working.

       

      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
            nicolasfella Nicolas Fella
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes