Results 1 to 8 of 8

Thread: problem in eventFilter of QGraphicsView()

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #6
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Wiki edits
    5

    Default Re: problem in eventFilter of QGraphicsView()

    Quote Originally Posted by wagmare View Post
    when the user press key <F1> .. i have to close the application or else user can click logout item .. like wise there are seven buttons <F2>, <F3> ,<F4> ... , each having different functions ... so i am planning to catch the event of pressing F1 ,... and try to do the option ....
    why this one is not working ..? shall i use QAction instead for this ..?
    well the item has to be focused to get the event - I guess. If you whant a global short cut - seems to me you whant one - use a QAction with QAction::setShortcutContext(Qt::ApplicationShortcut).

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

    wagmare (19th May 2009)

Similar Threads

  1. Replies: 2
    Last Post: 26th February 2009, 10:12
  2. Weird problem: multithread QT app kills my linux
    By Ishark in forum Qt Programming
    Replies: 2
    Last Post: 8th August 2008, 09:12
  3. Steps in solving a programming problem?
    By triperzonak in forum General Programming
    Replies: 8
    Last Post: 5th August 2008, 08:47
  4. Smooth pixmap transform in QGraphicsView problem
    By spud in forum Qt Programming
    Replies: 1
    Last Post: 24th October 2007, 16:47
  5. Replies: 16
    Last Post: 7th March 2006, 15:57

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.