[Qt-interest] QProcess

Jesús Fernández jsfdez at gmail.com
Mon Mar 23 16:00:36 CET 2009


Connect the signal error to any slots that shows if an error has occurred,
to see why the program is not launched.

2009/3/23 Sujan Dasmahapatra <sdh at lmglasfiber.com>

>  Dear Matteo it’s fantastic working now without the dot.thanx a lot.
>
>
>
> Kind regards,
> Sujan Dasmahapatra
>
>
> *From:* Matteo Bertozzi [mailto:theo.bertozzi at gmail.com]
> *Sent:* Monday, March 23, 2009 8:22 PM
> *To:* Sujan Dasmahapatra
> *Subject:* Re: [Qt-interest] QProcess
>
>
>
> *QString  program(“./home/sdh/WindlyzerDev/interpolate_tyk”);
>
> *
> Try without the dot.*
>
> QString  program(“/home/sdh/WindlyzerDev/interpolate_tyk”);*
>
> 2009/3/23 Sujan Dasmahapatra <sdh at lmglasfiber.com>
>
> Even if I call connect before calling start() still it’s not giving the
> signal….pls check below.
>
> * *
>
> *bool TableWidget::saveFileTYK(const QString filename, const QString
> filename)*
>
> *{*
>
> *                QString
> program(“./home/sdh/WindlyzerDev/interpolate_tyk”);*
>
> *                QProcess *tykprocess = new QProcess(this);*
>
> *
> connect(tykprocess,SIGNAL(started()),this,SLOT(myslot()));*
>
> *                tykprocess->start(program);*
>
> *}*
>
> * *
>
> *void TableWidget::myslot()*
>
> *{*
>
> *                qDebug() << “program started” << “\n”;*
>
> *} *
>
>
>
> But  still friends my program is not being executed ,if it executes
> properply then it should create a standard file by name ‘profile_n.tyk’
>
> Can anyone plss help me whats happening and what I need to do ?
>
>
>
> Kind regards,
> LM Glasfiber R&D (India) Pvt. Ltd.
>
> Sujan Dasmahapatra
> Project Engineer - CFD
>
> Telephone: +91 80 66470248
> Mobile:
> E-mail: sdh at lmglasfiber.com
>
>
>
>
>
>
>
>
>
> --------------------------------------------------------------
>
> This e-mail and any attachments are confidential. If you are not the named
> or intended recipient, please notify the sender immediately and do not
> disclose the contents to any other person, use it for any purpose or store
> or copy the information in any medium. Any unauthorized disclosure, use or
> storage is prohibited and might be unlawful.
>
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
>
>
>
> --
> Matteo Bertozzi
>
> Address: Via Adige 84, Asola (MN) Italy
> EMail: theo.bertozzi at gmail.com
> Phone: +39 3386987929
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090323/64353ae3/attachment.html 


More information about the Qt-interest-old mailing list