Results 1 to 3 of 3

Thread: Extend a Qt signal?

  1. #1
    Join Date
    Oct 2010
    Location
    Earth
    Posts
    50
    Thanks
    3
    Qt products
    Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Extend a Qt signal?

    Hi all,

    is it possible to extend a Qt signal? The original signal is:

    Qt Code:
    1. void QProcess::finished(int exitCode, QProcess::ExitStatus exitStatus)
    To copy to clipboard, switch view to plain text mode 

    I need:

    Qt Code:
    1. void QProcess::finished(int exitCode, QProcess::ExitStatus exitStatus, QString str)
    To copy to clipboard, switch view to plain text mode 

    Thx!
    Chris

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Extend a Qt signal?

    No but you can subclass QProcess and add a new signal with the signature you want. Of course you will be responsible for emitting this signal.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Oct 2010
    Location
    Earth
    Posts
    50
    Thanks
    3
    Qt products
    Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Extend a Qt signal?

    Ok, thanks for the hint!

Similar Threads

  1. extend the standard context menu of qtextedit
    By cai in forum Qt Programming
    Replies: 9
    Last Post: 10th November 2011, 12:16
  2. i need extend image using QPainter
    By erichong81 in forum Qt Programming
    Replies: 1
    Last Post: 18th March 2010, 08:51
  3. Extend QTcpServer to handle multiple clients
    By DiamonDogX in forum Qt Programming
    Replies: 5
    Last Post: 24th February 2010, 19:49
  4. Extend the ui_xxx.h file
    By dosto.walla in forum Qt Tools
    Replies: 20
    Last Post: 23rd September 2008, 17:44
  5. How to extend a class ?
    By agent007se in forum Newbie
    Replies: 11
    Last Post: 27th June 2006, 12:09

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.