How to get .exe parameters into QML app?
QML and Qt Quick
5
Posts
3
Posters
2.5k
Views
1
Watching
-
I have these in main.cpp:
int main(int argc, char *argv[])
How do I get the provided parameters to my QML layer? Like, if my .exe is launched with a certain key and value, how is it possible to communicate this to the QML layer?
-
I think I found how to parse the arguments with QCoreApplication::arguments(). But how do I comminucate the parsed stuff to QML? QmlApplicationViewer->rootContext()->setContextProperty ?
-
Ok, thanks, will try :D