Hi wysota,

Lets say, user will login into the app and he will view the list of maps. The user information like username and last login, will be passed to c++ method and store it in the qsettings.
So the list.cpp will return the list of maps and appset.cpp will handles the user information. Means one qml [main.qml] and 2 cpp [maplist.qml and appset.cpp]. Now I have to use the both cpp file in one qml.


In this case which one will be better? or should I

QQmlContext *context = appEngine.rootContext();
maplist*maplist= new maplist();
context->setContextProperty("maplist", maplist);

QQmlContext *contextUser = appEngine.rootContext();
appset*appset= new appset();
contextUser ->setContextProperty("appset", appset);