Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Handling QInputMethodEvent
Forum Updated to NodeBB v4.3 + New Features

Handling QInputMethodEvent

Scheduled Pinned Locked Moved Unsolved General and Desktop
inputmethodjapaneseqt5.4eventline edit
1 Posts 1 Posters 1.1k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    DivyPrakash
    wrote on 1 Apr 2016, 09:13 last edited by
    #1

    I have a QWidget on which I capture key press events.Lets say I press "h" (Input language is Japanese).
    I get QEvent::InputMethod on getting this event I show QLineEdit so that user can keep typing.
    Now the issue I am facing is that I am not able to combine first key press and subsequent key press on the QLineEdit.
    Meaning in Japanese when you combine "h" and "e" ,it becomes "ヘ"
    And If they are not combined it will appear like "h エ" .
    I am not sure how can I pass the "h" to my QLineEdit and it can process that as if it was typed on that.
    I already tried posting QINoutMethodEvent from my QWidget to my QLineEdit with necessary parameters and it does appears on the QLineEdit but not as a "pre-edit string" but as a committed string.
    Any suggestions??

    1 Reply Last reply
    0

    1/1

    1 Apr 2016, 09:13

    • Login

    • Login or register to search.
    1 out of 1
    • First post
      1/1
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved