Results 1 to 2 of 2

Thread: QProcess::start() cannot run a excute file while the QProcess::state() is QProcess::R

  1. #1
    Join Date
    Jul 2012
    Posts
    12
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Exclamation QProcess::start() cannot run a excute file while the QProcess::state() is QProcess::R

    Hi there, I got a piece of code right down here:

    Qt Code:
    1. fullPath = QString("E:/bin/fis/wave.exe"));
    2. QProcess *process = new QProcess();
    3. process->start(fullPath);
    4. if(!process->waitForStarted())
    5. {
    6. qDebug() << process->state();
    7. }
    8. qDebug() << "~" << process->state();
    To copy to clipboard, switch view to plain text mode 

    The qDebug() output is:

    Qt Code:
    1. ~ 2
    To copy to clipboard, switch view to plain text mode 

    It means running (QProcess::Running equals 2) ,but I cannot see any process called wave running on my computer through Task Manager, neither the GUI. Anybody has suggestions?

  2. #2
    Join Date
    May 2012
    Location
    Bangalore, India
    Posts
    271
    Thanks
    29
    Thanked 50 Times in 47 Posts
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: QProcess::start() cannot run a excute file while the QProcess::state() is QProces

    By the time you are seeing that process would already got into an end.
    Heavy Metal Rules. For those about to rock, we salute you.
    HIT THANKS IF I HELPED.

Similar Threads

  1. Replies: 0
    Last Post: 23rd March 2013, 20:23
  2. QProcess : unable to start sis file
    By javed_alam786 in forum Qt for Embedded and Mobile
    Replies: 6
    Last Post: 26th August 2011, 14:42
  3. Replies: 0
    Last Post: 26th August 2010, 11:44
  4. Replies: 3
    Last Post: 7th August 2010, 16:12
  5. QProcess state
    By patcito in forum Qt Programming
    Replies: 1
    Last Post: 17th January 2006, 20:56

Tags for this Thread

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.