Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

QtCreator and Command Line Arguments

Tags:

qt

qt-creator

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

like image 594
paul simmons Avatar asked Oct 20 '09 08:10

paul simmons


People also ask

Is Qt Creator an IDE?

Qt Creator is a cross-platform integrated development environment (IDE) built for the maximum developer experience. Qt Creator runs on Windows, Linux, and macOS desktop operating systems and allows developers to create software across desktop, mobile, and embedded platforms.

How do I open a command prompt in Qt?

To get such a command prompt, just select "Qt 4.8. 5 Command Prompt" from the startmenu. Either that or open a command prompt via Start -> Run -> "CMD.exe" and then call "C:\your_qt_install_path\bin\qtvars.

What is the difference between Qt and Qt Creator?

Qt Designer is for designing Dialogs and Main Windows (. ui files). Qt Creator is a full IDE for developing your program.


1 Answers

Go in the "Project" part on the left of QtCreator and then in the "Run Settings" tab. There is a Arguments line edit where you can put all you need to pass to your app when launching it.

For Qt Creator from Qt 5.6 Go in the "Projects part on the left and then in the "Build & Run" tab. Here you have a "Command line arguments" edit where you can put all parameters you want to pass to your app.

like image 176
Patrice Bernassola Avatar answered Sep 19 '22 00:09

Patrice Bernassola