Added a function to create new qml objects from a path