Details
-
Bug
-
Resolution: Fixed
-
Not Evaluated
-
6.8.0
-
None
Description
qmllint does not know the type of "this", interpreting every "this" as being of type "QObject", however id references to the same object work. "Item" can be replaced with any other type.
import QtQuick Item { id: object property string test: "test"; function testfn() { console.log(this.test) console.log(object.test) } }
produces
$ qmllint test/qmllsthis.qml -I [...] Warning: test/qmllsthis.qml:9:20: Member "test" not found on type "QObject" [missing-property] console.log(this.test) ^^^^
qmlls reports the same.