How to get .exe parameters into QML app?
-
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