Using null in QML
Unsolved
QML and Qt Quick
-
@Circuits said in Using null in QML:
Is it even necessary in the QML world? Can I just leave it uninitialized like so:
property var X;no, it is undefined if you let it uninitialized.you can test it
property var undefinedVar Component.onCompleted: console.log(undefinedVar) // output > qml: undefined