Results 1 to 2 of 2

Thread: keyPressEvent() is not received in GraphicsItem/GraphicsScene

  1. #1
    Join Date
    Feb 2008
    Posts
    51
    Thanks
    3
    Thanked 4 Times in 4 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Thumbs up keyPressEvent() is not received in GraphicsItem/GraphicsScene

    Hello,

    I am facing a strange behavior in my application. I have set Japanese as input language and Hiragana as input method. I have reimplemented keyPressEvent in MyGraphicsItem (inherited from QGraphicsTextItem) and MyCustomScene ( inherited from QGraphicsScene). The keyPressEvent is not delivered for characters and numbers, while it is delivered for other keys (Ctrl, Alt, Backspace, Enter, etc).

    Is there anything needs to be done for Japanese language? Any help will be appreciated.

    Thanks in advance.

    Sandip

  2. #2
    Join Date
    Feb 2008
    Posts
    51
    Thanks
    3
    Thanked 4 Times in 4 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: keyPressEvent() is not received in GraphicsItem/GraphicsScene

    I have tested it with sample QWidget and found that it is also not receiving keyPressEvent if we will change input method to "Hiragana".

Similar Threads

  1. Signal never received from network capture thread
    By skimpax in forum Qt Programming
    Replies: 9
    Last Post: 4th February 2010, 12:59
  2. vertical keypressevent not working on graphicsitem
    By creatio.x in forum Qt Programming
    Replies: 3
    Last Post: 25th December 2009, 11:23
  3. transfer graphicsscene on form1 to graphicsscene on form2
    By rogerholmes in forum Qt Programming
    Replies: 2
    Last Post: 25th September 2009, 20:37
  4. Positinoning in GraphicsScene without using GraphicsItem
    By salmanmanekia in forum Qt Programming
    Replies: 2
    Last Post: 16th June 2008, 07:11
  5. KDevelop + QT + GDB = Application received SIGTRAP
    By GodOfWar in forum Qt Programming
    Replies: 7
    Last Post: 29th April 2008, 19:59

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.