Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Qt5 QML - Get the virtual keyboard height (Android/iOS)
QtWS25 Last Chance

Qt5 QML - Get the virtual keyboard height (Android/iOS)

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
1 Posts 1 Posters 1.6k 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.
  • J Offline
    J Offline
    JulienD
    wrote on last edited by
    #1

    Hello,

    Is there a simple wau to get the height of the native virtual keyboard via QML?

    I raise it with Qt.inputMethod.show() and try to measure it with Qt.inputMethod.keyboardRectangle but I get a result of 0.

     var d = Qt.inputMethod.keyboardRectangle
     my_text_id.text = d.height + '';
    

    Note: I don't use

    keyboardRectangle()
    

    because Qt complains that this function doesn't exist.

    So, there may be something I missed in between.

    Thanks

    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