[Qt-interest] White space problem

sujan sujan.dasmahapatra at gmail.com
Thu Jul 28 23:14:25 CEST 2011


Thanks Jason its working fine now. Thanks for your suggestions  

Regards sujan

 

From: qt-interest-bounces+sujan.dasmahapatra=gmail.com at qt.nokia.com [mailto:qt-interest-bounces+sujan.dasmahapatra=gmail.com at qt.nokia.com] On Behalf Of Jason H
Sent: Thursday, July 28, 2011 12:54 PM
To: Scott Aron Bloom; qt-interest at trolltech.com
Subject: Re: [Qt-interest] White space problem

 

In Qt, it is possible and highly desirable to use / in paths instead of \\, and thus avoid the path seperator issue all together.

 

process.setWorkingDirectory("c:/program files/microsoft office/office14");

 

 

  _____  

From: Scott Aron Bloom <Scott.Bloom at onshorecs.com>
To: qt-interest at trolltech.com
Sent: Thursday, July 28, 2011 2:57 PM
Subject: Re: [Qt-interest] White space problem

Its not the spaces that are causing the problems…

 

Its your incorrect use of the \ character.

 

I bet you are getting a warning from the compiler saying “unknown escape character \p \m \o” etc

 

Scott

 

From: qt-interest-bounces+scott.bloom=onshorecs.com at qt.nokia.com [mailto:qt-interest-bounces+scott.bloom=onshorecs.com at qt.nokia.com] On Behalf Of sujan
Sent: Thursday, July 28, 2011 11:50 AM
To: qt-interest at trolltech.com
Subject: [Qt-interest] White space problem

 

Dear Friends

See the code snippet below

        QProcess process(this);

        process.setWorkingDirectory("c:\program files\microsoft office\office14");

        process.start("outlook.exe");

        process.waitForStarted(-1);

        process.waitForFinished(-1);

                process.terminate();

 

Above setWorkingDirectory contains white space in the names, so my outlook is not opening in windows. Please give me some solution how can I open outlook from the default location in window. Thanks sujan

Thanks & Regards

Sujan Dasmahapatra

B.E(Aeronautics)

Bangalore,India

Mob: 91-9900839788

 


_______________________________________________
Qt-interest mailing list
Qt-interest at qt.nokia.com
http://lists.qt.nokia.com/mailman/listinfo/qt-interest



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110728/0e23bd30/attachment.html 


More information about the Qt-interest-old mailing list