This warning category is spelled [missing-property] by qmllint.
You assigned an object to a non-existing default property.
The QML engine can't assign this object at runtime.
import QtQuick
Item {
component MyType: QtObject { property Item myItem; }
MyType {
Item {}
}
}To fix this warning, specify the property you want to bind to or, if you are the author of the type, mark a property as default:
import QtQuick
Item {
component MyType: QtObject { property Item myItem; }
MyType {
myItem: Item {}
}
component AlternativeMyType: QtObject { default property Item myItem; }
AlternativeMyType {
Item {} // bound to myItem via default property
}
}You assigned an expression to a non-existing property.
The QML engine can't assign this expression at runtime.
import QtQuick
Item {
property int myInt
myItn: 42
}To fix this warning, remove the binding or correct a possible typo:
import QtQuick
Item {
property int myInt
myInt: 42
}You accessed a member in a field member expression that can't be found by QML tooling.
A field member expression is an expression of the form someId.someProperty.
The QML tooling can't find this member, and the QML engine probably can't either.
import QtQuick
Item {
id: self
property int myInt
property int myInt2: 1 + self.myItn
}To fix this warning, remove the binding or correct a possible typo:
import QtQuick
Item {
id: self
property int myInt
property int myInt2: 1 + self.myInt
}
© The Qt Company Ltd
Licensed under the GNU Free Documentation License, Version 1.3.
https://doc.qt.io/qt-6.9/qmllint-warnings-and-errors-missing-property.html