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. Automatic window move if keyboard overlaps input field (Android, iOS)
Forum Updated to NodeBB v4.3 + New Features

Automatic window move if keyboard overlaps input field (Android, iOS)

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 322 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.
  • H Offline
    H Offline
    h00bs
    wrote on 18 Nov 2019, 12:23 last edited by
    #1

    If an input element gets focus on mobile and would be overlapped by the opening keyboard, Qt automatically moves the window up to avoid the input element being hidden by the keyboard. However in most cases this is not ideal and I would rather handle this in the application logic itself.

    Is anyone aware if there is any property of the Window in QML that reflects if and how much the Window is moved up on mobile devices?
    I already checked the most obvious y property but it stays unchanged.

    I also tried looking through the Qt sources to find the place where the transform is applied but I did not succeed so far. If anyone can point me to the relevant sources it would be great as well.

    Cheers.
    Alex

    Developer at Felgo - https://felgo.com/qt

    Develop mobile Apps for iOS & Android with Qt
    Develop Games with Qt

    Felgo is an official Qt Technology Partner

    1 Reply Last reply
    0

    1/1

    18 Nov 2019, 12:23

    • 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