[Qt-interest] Contents of Qt-interest digest...

Liu Yen Liang yenliangl at gmail.com
Wed Apr 29 05:29:28 CEST 2009


Try to add E:/source to your system's path or use absolute in the call to
QProcess::start().

--josh
Winston Churchill<http://www.brainyquote.com/quotes/authors/w/winston_churchill.html>
- "The best argument against democracy is a five-minute conversation
with
the average voter."

On Tue, Apr 28, 2009 at 7:42 PM, Princy K. V. <princy.kv at nestgroup.net>wrote:

> Thanks for ur help..
>
> But it didn't worked.. process->isOpen() returned false..
>
> Process is opened only when I add the statement
> ,QDir::setCurrent("E:/source/");
>
> Rtlrev is name of the exe located at say 'E:/source/'.
>
> I need to pass following arguments to run the exe ,
>
>  Say,  ' -dofile sample1/cdc.do'
>
> Main function of the exe checks all possible errors in arguments and
> create an log file.here I don't get any ..
>
> May be the main function of exe is not invoked..why is it so??plse reply
> ur suggestions..
>
> Thanks,
>
> Princy
>
> ------------------------------
>
> Message: 3
> Date: Tue, 28 Apr 2009 12:54:13 +0200
> From: "Andreas Diehl" <Andreas_Diehl at abs.org>
> Subject: Re: [Qt-interest] Help:About QProcess
> To: <qt-interest at trolltech.com>
> Message-ID: <CA9DB32D4785A74899C9DED210D4969383E406 at exmail.abs.org>
> Content-Type: text/plain; charset="us-ascii"
>
> Hi.
>
> Is your program "rltrev" known to the system's path? Perhaps QProcess
> tries to execute your command but it is unknown to your current working
> directory. So try using
>    process->setWorkingDirectory("PathTo_rtlrev");
> before actually starting the process. I once had the problem that my
> foreign process didn't find dependend libraries, thus checking or PATH
> and working directory might be a good start.
>
> Next you can use QProcess::error() to find out more about your process.
>
> Hope it helps,
>    Andreas
>
>
> ________________________________
>
>        Von: qt-interest-bounces at trolltech.com
> [mailto:qt-interest-bounces at trolltech.com] Im Auftrag von Princy K. V.
>        Gesendet: Dienstag, 28. April 2009 12:35
>        An: qt-interest at trolltech.com
>        Betreff: [Qt-interest] Help:About QProcess
>
>
>        Hello forum,
>
>
>
>        I am  new to Qt..
>
>        i want a  Guiapplication to execute [terminal commands] or run a
> exe with arguments when i press a button..
>
>        Code looks like this
>
>        process = new QProcess(this);
>
>        arguments << "-dofile sample1/cdc.do";
>
>        QDir::setCurrent("E:/source/");
>
>        process->start("rtlrev", arguments);
>
>
>
>        The process is up but it is never executed..why is it so??
> Please help me..
>
>        Thanks in advance.....
>
>
>
>        Princy
>
>
> ***** Confidentiality Statement/Disclaimer *****
>
> This message and any attachments is intended for the sole use of the
> intended recipient. It may contain confidential information. Any
> unauthorized use, dissemination or modification is strictly prohibited. If
> you are not the intended recipient, please notify the sender immediately
> then delete it from all your systems, and do not copy, use or print.
> Internet communications are not secure and it is the responsibility of the
> recipient to make sure that it is virus/malicious code exempt.
> The company/sender cannot be responsible for any unauthorized alterations
> or modifications made to the contents. If you require any form of
> confirmation of the contents, please contact the company/sender. The
> company/sender is not liable for any errors or omissions in the content of
> this message.
> ***** Confidentiality Statement/Disclaimer *****
>
> This message and any attachments is intended for the sole use of the
> intended recipient. It may contain confidential information. Any
> unauthorized use, dissemination or modification is strictly prohibited. If
> you are not the intended recipient, please notify the sender immediately
> then delete it from all your systems, and do not copy, use or print.
> Internet communications are not secure and it is the responsibility of the
> recipient to make sure that it is virus/malicious code exempt.
>
> The company/sender cannot be responsible for any unauthorized alterations
> or modifications made to the contents. If you require any form of
> confirmation of the contents, please contact the company/sender. The
> company/sender is not liable for any errors or omissions in the content of
> this message.
>
>
> _______________________________________________
> 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/20090429/f3c226b1/attachment.html 


More information about the Qt-interest-old mailing list