Important: Please read the Qt Code of Conduct -

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

  • 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.


Log in to reply