SysExp
3rd May 2011, 11:39
Hi...
I m new to Qt...Ma platform is Fedora 13 ..nd using Qt3..
I want to run a shell script that is in ma home directory "hello.sh"..its juz a trial ...the script on running wil print the account status information in the terminal..
now i jus want to gve a button to this script so tht, it wil print the output in the terminal whn the push button is clicked..
#include<qapplication.sh>
#include<qpushbutton.sh>
int main(int argc,char **argv)
{
QApplication app(argc,argv);
QPushButton *button =new QPushButoon("Hello",0);
app.setMainWidget(button);
button->show();
return app.exec();
}
wht else should i add to meet ma purpose?? .. pls tell me the code..
thanks in advance..
I m new to Qt...Ma platform is Fedora 13 ..nd using Qt3..
I want to run a shell script that is in ma home directory "hello.sh"..its juz a trial ...the script on running wil print the account status information in the terminal..
now i jus want to gve a button to this script so tht, it wil print the output in the terminal whn the push button is clicked..
#include<qapplication.sh>
#include<qpushbutton.sh>
int main(int argc,char **argv)
{
QApplication app(argc,argv);
QPushButton *button =new QPushButoon("Hello",0);
app.setMainWidget(button);
button->show();
return app.exec();
}
wht else should i add to meet ma purpose?? .. pls tell me the code..
thanks in advance..