Alright. I have searched a lot but haven\'t got a good solution yet. I am new to Qt. I have a class which is a QQuickItem like so,
Qt
QQuickItem
clas
Doing the following from a suggestion in discussion here solves the issue & gets a valid object to the QuickItem qml file
QQuickItem *myItem = engine.rootObjects()[0]->findChild("myQuickItem");