Results 1 to 5 of 5

Thread: Relaying a keyPressEvent from one Widget to another

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    Join Date
    Sep 2010
    Posts
    3
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Relaying a keyPressEvent from one Widget to another

    You could look into
    Qt Code:
    1. void QObject::installEventFilter ( QObject * filterObj )
    To copy to clipboard, switch view to plain text mode 
    to apply your filter (y) on your other widget (x)

    You would have to reimplement
    Qt Code:
    1. bool eventFilter(QObject *obj, QEvent *event)
    To copy to clipboard, switch view to plain text mode 
    this method in your widget (y) and call
    Qt Code:
    1. x->installEventFilter(y);
    To copy to clipboard, switch view to plain text mode 

    Hope this helps.

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

    bbdaffy (6th October 2010)

Similar Threads

  1. keypressevent
    By djwk in forum Newbie
    Replies: 9
    Last Post: 5th July 2010, 02:12
  2. relaying signals
    By Cruz in forum Qt Programming
    Replies: 7
    Last Post: 6th April 2010, 17:59
  3. prob with keyPressEvent()
    By Askar in forum Qt Programming
    Replies: 3
    Last Post: 14th December 2009, 07:47
  4. keyPressEvent issue
    By oguzy in forum Qt Programming
    Replies: 1
    Last Post: 7th November 2008, 15:39
  5. keypressevent with pyqt4
    By coldlin in forum Qt Programming
    Replies: 3
    Last Post: 3rd October 2007, 16: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.