Hi All ,
I want to execute a shell script in a unix console through the click of button from GUI interface .
I dont know how to acess & execute a particular shell script from GUI.
Thanks in advance for your help.
Regards
Gurinder
Hi All ,
I want to execute a shell script in a unix console through the click of button from GUI interface .
I dont know how to acess & execute a particular shell script from GUI.
Thanks in advance for your help.
Regards
Gurinder
Hi, see this thread (it's for Qt 4, but the same technique applies to Qt 3).
J-P Nurmi
hi
i tried using Qprocess below is the code
it gives following errorQt Code:
QObject *parent; QString program = "/project/tspgfeip/usr/DCU/gurinder/dcu_regression/gurinder_verif_dcu_tb_vr.11.00.00.12/dcu/tool_data/scripts/run_single"; QStringList arguments; arguments << "TestSet0"; myProcess->start( program,arguments); }To copy to clipboard, switch view to plain text mode
form1.ui.h:1062: no matching function for call to `QProcess::start(QStringList&
)'
/usr/lib64/qt-3.1/include/qprocess.h:77: candidates are: virtual bool
QProcess::start(QStringList* = 0)
make: *** [.obj/form1.o] Error 1
You're attempting to use QProcess the way it works in Qt 4. You're using Qt 3 so you should read docs of Qt 3: QProcess.
PS. Do NOT pass an uninitialized pointer as parent!
J-P Nurmi
gurinder (6th February 2008)
Bookmarks