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. #3
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Thanks
    8
    Thanked 334 Times in 317 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Relaying a keyPressEvent from one Widget to another

    You can simply emit a event from widget x to widget y.. and handle it in a slot of widget y.
    But a question... whats the purpose of widget x ? If you have proper shortcuts assigned, you don't need a widget x to capture them.

  2. The following user says thank you to aamer4yu 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.