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

qmllint wrong warning "Member "keyboardRectangle" not found on type "QObject" [missing-property]"

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3: Somewhat important P3: Somewhat important
    • Some future release
    • 6.9.1
    • QML: Tooling
    • None

      I got such warning from qmllint:

      Member "keyboardRectangle" not found on type "QObject" [missing-property]
                  return Qt.inputMethod.keyboardRectangle.height / coef;
      

      the problem caused by /usr/lib/qt6/qml/QML/plugins.qmltypes that part of qt6-declarative package on Arch Linux:

              Property {
                  name: "inputMethod"
                  type: "QObject"
                  isPointer: true
                  read: "inputMethod"
                  index: 2
                  isReadonly: true
                  isPropertyConstant: true
              }
      

      it should has something like `type: "QmlInputMethod"` to work properly.

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

            qtqmlteam Qt Qml Team User
            evgeniy_dushistov evgeniy_dushistov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes