[Qt-interest] White space problem

Jason H scorp1us at yahoo.com
Thu Jul 28 21:53:30 CEST 2011


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:/programfiles/microsoftoffice/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
        QProcessprocess(this);
        process.setWorkingDirectory("c:\programfiles\microsoftoffice\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/94acc668/attachment.html 


More information about the Qt-interest-old mailing list