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

qml TextInput scrolls the screen down for no reason.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • None
    • 5.9.0, 5.10.0
    • QPA
    • None
    • Qt 5.9, OSX, iOS 11.2, iPhone 7 retina.
    • iOS/tvOS/watchOS

    Description

      Since Qt 5.9, the TextInput qml element has a strange behavior on my iPhone 7 (retina display). When I press a input the screen with scroll down for no clear reason. I understand that it could sometime scroll up to allow to see the input while the keyboard is visible, but here it does the opposite. I suspect the keyboard/input overlap computation not considering the screen density.

      I attach a sample source code and two screenshots to show what I mean.

      I could reproduce with all Qt releases from 5.9 to 5.10. 5.8 works fine.

      Attachments

        1. IMG_0309.jpg
          IMG_0309.jpg
          112 kB
        2. IMG_0310.jpg
          IMG_0310.jpg
          26 kB
        3. main.cpp
          0.3 kB
        4. main.qml
          0.4 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            vestbo Tor Arne Vestbø
            guillaume-chereau guillaume-chereau
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes