QML: added function for creation of QML objects