Thank you very much for the info
I managed to create a "viewController" Class which will be the context of the main qml and where the loader source is binded to an Attribute of the class and it works nice.
And how would i get the loader Object from the QML to set its context. Or can i bind the context of the loader object from the viewController?
I don't quite get what you mean there.
What you do internally in your exported object when it changes the view path is up to you.
Due the fact that i can set multiple context on a qml view i do not have to get the Loader element to set the data context to the "subView"
So this question is outdated 
But now i have another Problem 
I have a QML which is loaded in the LOader element and this contains a ListView with a Delegate and a Model which is given from C++ Class
This works. Now i am trying to get a Signal from the listView to the C++ Object
i have added a Signal in the ListView-Delegate and i emit the signal when i am doing a click on an item
QML FILE: StandardListViewDelegate
Item {
id: listViewDelegateRoot
width: parent.width
height: 88
property alias itemId: itemId.itemId
signal sigItemClicked(var _itemId)
...
Item {
id: itemId
property string itemId: modelData
}
MouseArea {
id: mouse
anchors.fill: parent
onClicked: listViewDelegateRoot.sigItemClicked(itemId)
}
}
QML FILE: StandardListViewDelegate
Item {
id: listViewDelegateRoot
width: parent.width
height: 88
property alias itemId: itemId.itemId
signal sigItemClicked(var _itemId)
...
Item {
id: itemId
property string itemId: modelData
}
MouseArea {
id: mouse
anchors.fill: parent
onClicked: listViewDelegateRoot.sigItemClicked(itemId)
}
}
To copy to clipboard, switch view to plain text mode
Do i have to connect to the Signal in the main QML file so that i can connect it to the C++ Object Slot like eg.:
(But that code throws me the error: "Cannot assign to non-existent property "sigItemClicked""
Rectangle {
Id: subView
signal sigModuleSelected(var _moduleId)
ListView {
model: moduleListObject
anchors.fill: parent
delegate: StandardListViewDelegate {
itemId: model.modelData.moduleId
itemText: model.modelData.name
sigItemClicked: sigModuleSelected(_itemId)
}
}
}
Rectangle {
Id: subView
signal sigModuleSelected(var _moduleId)
ListView {
model: moduleListObject
anchors.fill: parent
delegate: StandardListViewDelegate {
itemId: model.modelData.moduleId
itemText: model.modelData.name
sigItemClicked: sigModuleSelected(_itemId)
}
}
}
To copy to clipboard, switch view to plain text mode
Or can i connect the Delegate Signal directly to a c++ Slot with Object::connect
And the main question is... How do i get the rootObjec(Qobject) where i have to connect to?!
I have the "QQmlApplicationEngine" object where i can get all Objects but should i do something like?
C++
QObject *subViewObject
= object
->findChild<QObject
*>
("subView");
QObject::connect(subViewObject,
SIGNAL(sigModuleSelected
(QString)),
this,
SLOT(onModuleSelected
(QString)));
C++
QObject *subViewObject= object->findChild<QObject*>("subView");
QObject::connect(subViewObject, SIGNAL(sigModuleSelected(QString)), this, SLOT(onModuleSelected(QString)));
To copy to clipboard, switch view to plain text mode
i know i am not very good in explaining things that i want to do but i hope you can understand my question 
Added after 1 16 minutes:
Okay,
I managed to do some stuff by myself 
The only Problem that persists is that i want to Redirect a Signal from a ListView delegate to ist parent Container
I don't know how to do that
Added after 23 minutes:
Ahhh damit 
I've found my Problem.
Instead of doing this
Rectangle {
signal sigModuleSelected(string _moduleId)
ListView {
id: moduleListViewObject
model: moduleListObject
anchors.fill: parent
delegate: StandardListViewDelegate {
id: moduleListViewDelegate
itemId: model.modelData.moduleId
itemText: model.modelData.name
sigItemClicked: { sigModuleSelected(_itemId) }
}
}
Rectangle {
signal sigModuleSelected(string _moduleId)
ListView {
id: moduleListViewObject
model: moduleListObject
anchors.fill: parent
delegate: StandardListViewDelegate {
id: moduleListViewDelegate
itemId: model.modelData.moduleId
itemText: model.modelData.name
sigItemClicked: { sigModuleSelected(_itemId) }
}
}
To copy to clipboard, switch view to plain text mode
i have to use
Rectangle {
signal sigModuleSelected(string _moduleId)
ListView {
id: moduleListViewObject
model: moduleListObject
anchors.fill: parent
delegate: StandardListViewDelegate {
id: moduleListViewDelegate
itemId: model.modelData.moduleId
itemText: model.modelData.name
onSigItemClicked: { sigModuleSelected(_itemId) }
}
}
Rectangle {
signal sigModuleSelected(string _moduleId)
ListView {
id: moduleListViewObject
model: moduleListObject
anchors.fill: parent
delegate: StandardListViewDelegate {
id: moduleListViewDelegate
itemId: model.modelData.moduleId
itemText: model.modelData.name
onSigItemClicked: { sigModuleSelected(_itemId) }
}
}
To copy to clipboard, switch view to plain text mode
Bookmarks