Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How do I pass a value along when attempting to execute an external process using Qt.openUrlExternally

How do I pass a value along when attempting to execute an external process using Qt.openUrlExternally

Scheduled Pinned Locked Moved General and Desktop
batopenurlexternal
1 Posts 1 Posters 381 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Marika
    wrote on last edited by
    #1

    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")
    
    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved