[Qt-interest] QProcess
Arnold Spence
arnold at psilent.net
Mon Mar 23 15:39:59 CET 2009
2009/3/23 Sujan Dasmahapatra <sdh at lmglasfiber.com>
> Dear Friends I want to run a program(executable) from within my code for
> that I am doing like this…
>
>
>
> Bool TableWidget::saveFileTYK()
>
> {
>
> QString program(“./home/sdh/WindlyzerDev/interpolate_tyk”);
>
>
>
> QProcess *tykprocess = new QProcess(this);
>
>
>
> Tykprocess->start(propgram);
>
>
>
> connect (tykprocess,SIGNAL(started()),this,SLOT(myslot()));
>
> }
>
> void TableWidget::myslot()
>
> {
>
> qDebug() << “program started” << “\n”;
>
> }
>
>
>
> But here I am not getting the signal started() that means my program is not
> running can u tell me anyone what could be the problem plss ??
>
>
>
Try calling connect before you call start.
--
Arnold
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090323/2c03ced6/attachment.html
More information about the Qt-interest-old
mailing list