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. [Solved] Detecting VKB close on Symbian in QML
QtWS25 Last Chance

[Solved] Detecting VKB close on Symbian in QML

Scheduled Pinned Locked Moved QML and Qt Quick
3 Posts 2 Posters 2.9k Views
  • 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.
  • M Offline
    M Offline
    mlong
    wrote on last edited by
    #1

    I'm currently using the TextField Qt Component on Symbian to do some text entry for a search field in a QML app I'm writing. I'd like to have the search automatically start when the user presses the green CheckMark key on the virtual keyboard. The Keys item, though, doesn't seem to be registering keypress events when the VKB is open, so I'm at a loss on how to catch the event.

    Anyone know how to detect when the user has finished with the virtual keyboard? Or how to (at very least) trap the close event?

    Software Engineer
    My views and opinions do not necessarily reflect those of anyone -- living or dead, real or fictional -- in this universe or any other similar multiverse node. Void where prohibited. Your mileage may vary. Caveat emptor.

    1 Reply Last reply
    0
    • T Offline
      T Offline
      thisisbhaskar
      wrote on last edited by
      #2

      I don't think you can do it in QML. May be in your Qt C++ try this ( not sure if this works )

      Install event filter on your QApplication object and scan for "QEvent::CloseSoftwareInputPanel" event. This signifies that software keypad close is requested.

      1 Reply Last reply
      0
      • M Offline
        M Offline
        mlong
        wrote on last edited by
        #3

        Ok, great. That seems to be a reasonable solution. Thanks!

        Software Engineer
        My views and opinions do not necessarily reflect those of anyone -- living or dead, real or fictional -- in this universe or any other similar multiverse node. Void where prohibited. Your mileage may vary. Caveat emptor.

        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