How do I pass a value along when attempting to execute an external process using Qt.openUrlExternally
-
I am creating an app written in QML, that has a button that when clicked runs a bat file. I can see the bat file executes, but i need to be able to pass to the batch file a value (to be used to set a folder location inside the batch file). How can I pass the value along when I execute the bat file? This is what my QML code looks like:
MenuButton { labelText: "Run lupdate" mouseButton.onClicked: { Qt.openUrlExternally("run-lupdate.bat") } }
I'm looking for something like:
Qt.openUrlExternally("run-lupdate.bat","C:\Temp")