Results 1 to 7 of 7

Thread: QGraphicsItem and QKeyEvent problem

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2010
    Posts
    13
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QGraphicsItem and QKeyEvent problem

    Does anyone have an idea how to fix that?

  2. #2
    Join Date
    Feb 2010
    Posts
    13
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QGraphicsItem and QKeyEvent problem

    Can Somebody Help?

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

    Default Re: QGraphicsItem and QKeyEvent problem

    Since your code is confusing me just install an event filter on your application and see who gets the key event.
    If you don't have any mouse interaction in your view I would set the noFocus policy to the view. if it is your only widget, then the mainwindow should receive the key event.

Similar Threads

  1. QKeyEvent problem with different keyboard layout
    By minimoog in forum Qt Programming
    Replies: 3
    Last Post: 12th February 2010, 06:45
  2. Something about the QKeyEvent in Qt3
    By cspp in forum Qt Programming
    Replies: 1
    Last Post: 30th June 2009, 02:38
  3. QKeyEvent Problem
    By cutie.monkey in forum Qt Programming
    Replies: 1
    Last Post: 25th July 2008, 23:36
  4. QKeyEvent
    By peace_comp in forum Qt Programming
    Replies: 2
    Last Post: 10th April 2008, 13:13
  5. QKeyEvent
    By sonuani in forum Newbie
    Replies: 8
    Last Post: 25th February 2008, 07:38

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.