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. Switch off scrolling application window up when virtual keyboard appeared . How?
Qt 6.11 is out! See what's new in the release blog

Switch off scrolling application window up when virtual keyboard appeared . How?

Scheduled Pinned Locked Moved Solved Mobile and Embedded
2 Posts 1 Posters 1.3k Views
  • 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.
  • B Offline
    B Offline
    bogong
    wrote on last edited by
    #1

    Hello all!

    When QML component TextInput attached to the bottom of application window and active focus is on this component, entire application window scrolling up when virtual appeared.

    How to switch this scrolling up? Need to keep application window as it is.

    1 Reply Last reply
    0
    • B Offline
      B Offline
      bogong
      wrote last edited by
      #2

      For now haven't found any global solution to prevent window pan (scrolling up). If there are any and you know something about it write it here please.

      Found only solution to trick it for iOS and switch off for Android with manifest.
      Briefly for IOS need to be added custom event filter for TextInput that is falsifying QRectF of cursor position.
      For Android just add to activity section this:

      android:windowSoftInputMode="adjustNothing
      

      Here got published example tested with Qt 6.11.1 It's using SafeArea (since Qt 6.9)

      1 Reply Last reply
      0
      • B bogong has marked this topic as solved

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved