I want to create a QML Comonent on runtime.
I found some samples and i tried it, but i am not always getting an abortion when laoding the URL into the component.
I tried several URLs to be sure i got a working one but i always get the abortion (read acces Violation) which i thought is a Problem when getting the qml file.

Qt Code:
  1. QQmlComponent *component = new QQmlComponent(viewController.getAppEngine().data());
  2. //component->loadUrl(QUrl("qrc:///qml/components/LabelStringEdit.qml")); // ABORTION IS HERE!!! This line should work in my opinion...
  3. //component->loadUrl(QUrl("qrc:/qml/components/LabelStringEdit.qml"));// ABORTION IS HERE!!!
  4. //component->loadUrl(QUrl("qrc:module/settings/view_settings_connector_sageX3.qml"));// ABORTION IS HERE!!!
  5. component->loadUrl(QUrl::fromLocalFile("C:/Development/QtTest/qml/components/LabelStringEdit.qml")); // ABORTION IS HERE!!!
  6. QQuickItem *quickItem = qobject_cast<QQuickItem*>(component->create());
  7. QQuickItem *parentQuickItem = qobject_cast<QQuickItem*>(_rootObject);
  8. QQmlEngine::setObjectOwnership(quickItem, QQmlEngine::CppOwnership);
  9. quickItem->setParent(this);
  10. quickItem->setVisible(true);
  11. quickItem->setParentItem(parentQuickItem);
To copy to clipboard, switch view to plain text mode 

Is there anything i am doeing wrong?
The QML is a Quck QML file...

Thanks!