Results 1 to 3 of 3

Thread: Event Handling in Multible Screens

  1. #1
    Join Date
    Aug 2009
    Posts
    47
    Thanks
    6
    Thanked 1 Time in 1 Post
    Qt products
    Qt4 Qt/Embedded PyQt3 PyQt4
    Platforms
    Unix/X11 Symbian S60

    Unhappy Event Handling in Multible Screens

    Hi,

    In my Application i have different widgets.I want to handle the keypress event separately to each and every widgets.how do we do that one? please guide me to resolve this thing.

    Regards
    Kavin

  2. #2
    Join Date
    Oct 2009
    Posts
    151
    Thanks
    6
    Thanked 13 Times in 11 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Event Handling in Multible Screens

    The normal way, with signals and slots. http://doc.trolltech.com/4.6/signalsandslots.html

    Is there a specific problem or were you looking for general guidance?
    Got to keep the loonies on the path ...

  3. #3
    Join Date
    Mar 2009
    Location
    Tennessee, US
    Posts
    41
    Thanks
    3
    Thanked 11 Times in 8 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Event Handling in Multible Screens

    Another way to do it would be to use the QWidget::grabShortcut() function. This allows you to get the event to your widget when the key or key sequence is pressed.

Similar Threads

  1. QThread event handling and QWaitCondition
    By mattc in forum Qt Programming
    Replies: 2
    Last Post: 21st August 2009, 13:00
  2. [PyQt4] Trouble with event handling
    By Dodle in forum Qt Programming
    Replies: 4
    Last Post: 5th May 2009, 04:45
  3. SplashScreen and Event handling???
    By Nithya in forum Qt Programming
    Replies: 4
    Last Post: 25th April 2008, 07:05
  4. event handling...
    By xyzt in forum Qt Programming
    Replies: 1
    Last Post: 25th March 2008, 07:16
  5. Event handling problem
    By Mel Seyle in forum Qt Programming
    Replies: 2
    Last Post: 23rd August 2007, 04:15

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.