QtCreator and command line arguments

Is there a way to send command line arguments to a debugged program in QtCreator?

+59
qt qt-creator
Oct 20 '09 at 8:52
source share
4 answers

Go to the “Project” part to the left of QtCreator, and then on the “Launch Settings” tab. There is the line “Arguments” in which you can put everything you need to transfer your application when it starts.

For Qt Creator from Qt 5.6 Go to the "Projects" section on the left and then on the "Build and Run" tab. Here you can edit the "command line arguments", where you can put all the parameters that you want to pass to your application.

+75
Oct 20 '09 at 8:58
source share

Since the accepted answer is deprecated, I am posting this picture which answers the question about the newer version of QtCreator:

enter image description here

+21
Sep 09 '15 at 2:21
source share

For Qt Creator 3.3.2, set the working directory and command line parameters:

Projects (to the left of Qt Creator)
- Create and run (tab)
- Launch (tab) - displays "Launch Options"
--- Arguments: ...
--- Working directory: ...

+7
Apr 04 '15 at 17:47
source share

According to the image below, Build and Run has an input for command line arguments (in the screenshot, it is highlighted with a blue frame, since it has focus): -

enter image description here

Qt Creator with Qt version 5.6.1

+1
Sep 17 '16 at 21:10
source share



All Articles