Results 1 to 5 of 5

Thread: Quick help on QProcess

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2006
    Location
    Romania
    Posts
    2,744
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    8
    Thanked 541 Times in 521 Posts

    Default Re: Quick help on QProcess

    Quote Originally Posted by jacek View Post
    Shouldn't it be processIT()?
    Yes, that confuses me too.
    Maybe it is just a copy paste error.

    But, if it is processIT, where do you connect to processIT? Could you post that code too?

    Regards

  2. #2
    Join Date
    Jul 2007
    Location
    Scottsdale, AZ USA
    Posts
    17
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows
    Thanks
    1

    Default Re: Quick help on QProcess

    You guys are right!


    I had this for my process button:
    processButton = createButton(tr("&Process"), SLOT(process()));

    should be ...SLOT(processIT()));

    A slot may have a shorter signature than the incoming signal, but not the way around.
    Hint: make the parameter for output a default one:
    Should I forget about passing a parameter to the output() function.
    in essence:
    Qt Code:
    1. //......
    2. connect(&process,SIGNAL(readyReadStandardOutput()),
    3. this,SLOT([B]output()[/B]));
    4. //.......
    To copy to clipboard, switch view to plain text mode 
    and then setup output as:

    Qt Code:
    1. void Window::output()
    2. {
    3. out->append(QString(process.readyReadStandardOutput()));
    4. }
    To copy to clipboard, switch view to plain text mode 

Similar Threads

  1. QProcess and Pipes
    By KaptainKarl in forum Qt Programming
    Replies: 1
    Last Post: 9th April 2007, 23:11
  2. QProcess extremely slow on Windows?
    By Pepe in forum Qt Programming
    Replies: 2
    Last Post: 26th March 2007, 00:25
  3. Quoting problem with QProcess
    By the_bis in forum Qt Programming
    Replies: 1
    Last Post: 15th December 2006, 11:24
  4. problem with qprocess
    By deekayt in forum Qt Programming
    Replies: 2
    Last Post: 13th June 2006, 13:30
  5. QProcess in a QThread
    By chombium in forum Qt Programming
    Replies: 2
    Last Post: 11th January 2006, 15:52

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.