[Qt-interest] Help:About QProcess

Andreas Diehl Andreas_Diehl at abs.org
Tue Apr 28 12:54:13 CEST 2009


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.
--
Mit freundlichen Gru?en
Andreas Diehl 
 
-------------------------- ABS -------------------------
ABS Systemberatung OHG          Tel: +49 (0)7053/9290-03
Hauffstr. 9                     Fax: +49 (0)7053/9290-
D-75385 Bad Teinach-Zavelstein        http://www.abs.org
Registergericht Calw HRA 1031
[mailto:Andreas_Diehl at abs.org]
 
----- Loesungen fuer den Maschinen- und Anlagenbau -----
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090428/fa1d9473/attachment.html 


More information about the Qt-interest-old mailing list