Results 1 to 6 of 6

Thread: PyQT4: application won't start because of spaces in path Qprocess

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #4
    Join Date
    Jan 2008
    Location
    Bengaluru
    Posts
    144
    Thanks
    8
    Thanked 7 Times in 7 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Windows

    Default Re: PyQT4: application won't start because of spaces in path Qprocess

    Try this,

    Qt Code:
    1. QFile file("dummy.bat");
    2.  
    3. if(!file.open(QIODevice::WriteOnly) )
    4. return;
    5.  
    6. file.write(QString("\"C:/Program Files/Windows Media Player/wmplayer\"").toAscii());
    7. file.close();
    8.  
    9. p->start("dummy.bat");
    10.  
    11. if( p->waitForFinished() )
    12. {
    13. file.remove();
    14. return;
    15. }
    To copy to clipboard, switch view to plain text mode 

  2. The following user says thank you to nikhilqt for this useful post:

    jaybstory (4th February 2010)

Similar Threads

  1. QProcess start() failure
    By jacek_ in forum Qt Programming
    Replies: 3
    Last Post: 26th November 2009, 13:04
  2. configuration failure due to spaces in path
    By kondor in forum Installation and Deployment
    Replies: 7
    Last Post: 2nd October 2009, 07:33
  3. QProcess to Start App
    By ManuMies in forum Qt Programming
    Replies: 2
    Last Post: 29th May 2009, 11:58
  4. Replies: 1
    Last Post: 7th April 2008, 15:12
  5. QProcess start automaticaly needed application
    By raphaelf in forum Qt Programming
    Replies: 1
    Last Post: 16th February 2006, 14:11

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.