Results 1 to 3 of 3

Thread: QProcess::finished problems again

  1. #1
    Join Date
    Jan 2009
    Posts
    6
    Thanked 3 Times in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default QProcess::finished problems again

    Hello there,
    I also have problems with the "finished()" SIGNAL of the QProcess class.
    My development environment is:
    Qt 4.4.3 + Eclipse on Windows XP

    I created a basic gui application that has the following instructions in the constructor:

    Qt Code:
    1. ...
    2. connect(&process, SIGNAL(started()),
    3. this, SLOT(onProcessStarted ()));
    4. connect(&process, SIGNAL(readyReadStandardError()),
    5. this, SLOT(onProcessReadyReadStandardError ()));
    6. connect(&process, SIGNAL(readyReadStandardOutput()),
    7. this, SLOT(onProcessReadyReadStandardOutput ()));
    8. connect(&process, SIGNAL(finished(int exitCode, QProcess::ExitStatus exitStatus)),
    9. this, SLOT(onProcessFinished ( int exitCode, QProcess::ExitStatus exitStatus )));
    10. ...
    To copy to clipboard, switch view to plain text mode 

    "process" is a QProcess variable defined in the class definition.

    The external process is started, when I click a button, with:

    Qt Code:
    1. ...
    2. process.start(s); // s is a QString containing file name such as "notepad"
    3. ...
    To copy to clipboard, switch view to plain text mode 

    My problem is that all SIGNALs are correctly emitted excepted the "finished()" one.

    When executing in debug mode, debugger generates the following message:
    warning: Object::connect: No such signal QProcess::finished(int exitCode,QProcess::ExitStatus exitStatus)

    Thanks for any idea.

    Max

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: QProcess::finished problems again

    You must not put parameter names but only types to the connect() statement.
    J-P Nurmi

  3. #3
    Join Date
    Jan 2009
    Posts
    6
    Thanked 3 Times in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QProcess::finished problems again

    Shame on me!

    Thank you so much!

    Max

Similar Threads

  1. Problems with scope and C header functions
    By waldowoc in forum Newbie
    Replies: 5
    Last Post: 5th August 2008, 11:29
  2. flicker and wierd resize problems ...
    By momesana in forum Qt Programming
    Replies: 1
    Last Post: 12th May 2008, 18:00
  3. Replies: 2
    Last Post: 8th March 2007, 22:22
  4. QT4 Plugins - problems, problems
    By NormanDunbar in forum Qt Programming
    Replies: 6
    Last Post: 9th May 2006, 15:39

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.