Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Qt Creator: Run config with user-input of arguments
Forum Updated to NodeBB v4.3 + New Features

Qt Creator: Run config with user-input of arguments

Scheduled Pinned Locked Moved Qt Creator and other tools
5 Posts 2 Posters 1.7k Views 1 Watching
  • 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.
  • T Offline
    T Offline
    toralf
    wrote on last edited by
    #1

    Is there a way I can set up a run configuration in Qt Creator so that arguments are requested on startup? I guess what I'm looking for is a cross between the built-in "Custom Executable" setup and a normal "fixed" config, i.e. a setup where the fields are predefined, but I still get a "confirmation" popup on startup - preferrably with the Executable field locked against changes. Is anything like that supported? Actually, maybe what I'd ideally want is a new run command that would open such a box for any run configuration...

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      Go to Projects->Run. There is a line edit labelled as "Arguments" there.

      (Z(:^

      1 Reply Last reply
      0
      • T Offline
        T Offline
        toralf
        wrote on last edited by
        #3

        I think you're missing my point slightly. You're actually talking about editing the run configuration, aren't you? What I'm trying to say, is that it is rather cumbersome to do this each and every time you want to change the arguments - if you're debugging a "console" or daemon/service program that relies heavily on command line arguments. I was hoping there would be a more direct way to "set arguments and run".

        1 Reply Last reply
        0
        • sierdzioS Offline
          sierdzioS Offline
          sierdzio
          Moderators
          wrote on last edited by
          #4

          I don't know of any other way to do it in Qt Creator.

          You can, of course, simply run the binary from the terminal.

          (Z(:^

          1 Reply Last reply
          0
          • T Offline
            T Offline
            toralf
            wrote on last edited by
            #5

            Indeed. What I'm talking about is more relevant when running through the debugger, really. But then you still use run configurations, don't you?

            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