Maybe the problem is your view’s variable type.
Here, I’ve tested the same code as you and it worked. However, I’ve changed the view type to “QtQuick1ApplicationViewer” and I’ve used “setMainQmlFile” to set my Qml file’s path.
Try to change this and post your results.
↧