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. QML TextArea on android make a flicker resize when virtual keyboard show up
Forum Updated to NodeBB v4.3 + New Features

QML TextArea on android make a flicker resize when virtual keyboard show up

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

    Hi all

    Making a QML ApplicationWindow with a header toolbar defined and entire body filled with a TextArea control I have a very bad flicker resize when TextArea get focus and, in consequence, android virtual keyboard is show up. To be more precise it seem when android virtual keyboard come up the QML window is resized to the new available space (display height - virtual keyboard height) but when this resize operation happen the entire QML window content (starting from topbar) is moved down and moved up again to the normal position for a very short time. This cause a flicker very bad to see. Setting into mainfest xml the flag android:windowSoftInputMode="adjustPan" not show the problem but, obviously, the text is painted under the keyboard and is not visible anymore than this solution can ot be used.
    Someone experimented same problem and have a solution?
    Thank you

    1 Reply Last reply
    0
    • deleted57D Offline
      deleted57D Offline
      deleted57
      wrote on last edited by
      #2

      Bug already reported here:

      https://bugreports.qt.io/browse/QTBUG-41170

      but it's a very long time and still is unresolved....

      1 Reply Last reply
      0
      • deleted57D Offline
        deleted57D Offline
        deleted57
        wrote on last edited by
        #3

        If someone is interested here a possible workaround:

        http://falsinsoft.blogspot.com/2017/04/qml-resize-controls-when-android.html

        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