Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Key press events are not handled in e.g. Qml TextField but eventFilter receives it
Forum Updated to NodeBB v4.3 + New Features

Key press events are not handled in e.g. Qml TextField but eventFilter receives it

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 164 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.
  • A Offline
    A Offline
    Andreas Schacherbauer
    wrote on last edited by
    #1

    Hi, I have a view in Qml that contains a TextField. This view has a C++ class set as eventFilter. When I launch the Qt Quick application, the TextField has focus but if I start typing, key presses are not received by the TextField but the eventFilter method is called and shows me that Qt in general is aware of the event. The event filter is returning false, so that this should not be the reason why the TextField is not getting the key event. I have also set used the attached property Keys.onPressed in Qml to verify if Qml is in general able to receive events and it is called as well. Just my TextField is not getting the event.
    I also enabled Qt_LOGGING_RULES and checked Qt logs for anything suspicious, but nothing is showing up. Are there any further debug techniques for (key) events?

    Thx
    Andi

    1 Reply Last reply
    0

    • Login

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