Is there a way to send command line arguments to a program being debugged in QtCreator?
相关问题
- QML: Cannot read property 'xxx' of undefin
- QTextEdit.find() doesn't work in Python
- QT Layouts, how to make widgets in horizontal layo
- QT GUI freezes even though Im running in separate
- QGraphicsView / QGraphicsScene size matching
相关文章
- ubuntu20.4中c#通过c++库调用python脚本
- Qt槽函数自动执行多遍
- Is there a non-java, cross platform way to launch
- How to get a settings storage path in a cross-plat
- Why doesn't valgrind detect a memory leak in m
- QTreeView remove decoration/expand button for all
- qt界面拥挤
- how do I correctly return values from pyqt to Java
For Qt Creator 3.3.2, to set the working directory and command line arguments:
Projects (far left of Qt Creator)
- Build & Run (tab)
-- Run (sub tab) - brings up "Run Settings"
--- Arguments: ...
--- Working directory: ...
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.
As the accepted answer is outdated, I post this picture which answers the question for a newer version of QtCreator:
As per the image below, Build & Run has an input for command line arguments (in the screen shot it is highlighted with a blue border as it has the focus) :-
Qt Creator with Qt version 5.6.1