Use qmlEngine() function to obtain QDeclarativeEngine instance