QProcess fails to execute a terminal line command via QPushButton
问题 I am trying to execute a command line using QProcess as soon as I push a QPushButton on my gui. The problem I have is that the .sh executable file is never executed. The script I am trying to execute is very simple and reported below: #!/bin/bash echo "try one two three" rostopic echo -b LaserScan_PointCloud2_test.bag -p /scan > laserScan_test_1.csv Below the function that activate the button: filterpcdinterface.h private slots: void on_executeScriptBtn_clicked(); private: QProcess