网上找到了这个:
QT Creator switch to Projects > "Run Settings" > "Run configuration:"
select "custom executable"
Executable: sudo /d4/workspace/qt/test2-build-desktop/test2
change the above line to match your project path
但是在Qt5.4界面上:

表示找不到"Run Settings" > "Run configuration:"这些东西啊?
------解决思路----------------------
你的 "运行" 和 “运行配置” 不就是 "Run Settings" > "Run configuration:" 么?
你想做的无非就是,本来要启动程序 A,现在要启动的 sudo或gksudo ,并将你要启动的程序 A 作为参数传入。