Qt Creator: Run config with user-input of arguments
-
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...
-
Go to Projects->Run. There is a line edit labelled as "Arguments" there.
-
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".
-
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.
-
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?