Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-80024

Automatic window slide up on keyboard open should be optional

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • 5.13.2
    • None
    • Android, iOS/tvOS/watchOS

    Description

      If a textfiel or a similar input element gets focused, and Qt determines that it would be hidden by the opening keyboard, the whole window is moved upwards automatically.

      This might make sense in various scenarios, but it also causes a lot of unwanted side-effects. Usually only the content of a page should move up and not the navigation bar, which is then no longer visible, which is very odd for mobile apps. Also positioing items like a floating action bar above the keyboard is impossible, cause you never know if the window is currently moved up and by how much, to adapt the position of the floating button relative to the bottom of the window (to respect the open keyboard).

      The developer should have the choice if this automatic window positioning feature should be used, or if he wants to handle it himself. Furthermore the QML window does not seem to reflect the repositioning in any of its properties, like "y". So currently, correct me if I am wrong, there seems to be no way for the developer to know if the window was shifted up or not.

      The functionality that is responsible for moving the window seems to be deep down in the core and the only "solution" to avoid it that I found so far is a very dirty hack: https://stackoverflow.com/questions/34716462/ios-sometimes-keyboard-pushes-up-the-whole-qml-page/41844127#41844127

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            h00bs Alex Huber
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes