Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. QML VirtualKeyboard - AutoScroll Mode?
QtWS25 Last Chance

QML VirtualKeyboard - AutoScroll Mode?

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
3 Posts 2 Posters 646 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.
  • T Offline
    T Offline
    Tobias Fensch
    wrote on last edited by
    #1

    Re: QML VirtualKeyboard - Overlapping area auto scrolling

    Hello,
    is there a way to auto-scroll the content when it is overlapped by the virtual keyboard?

    regards,
    Tobias

    L 1 Reply Last reply
    0
    • T Tobias Fensch

      Re: QML VirtualKeyboard - Overlapping area auto scrolling

      Hello,
      is there a way to auto-scroll the content when it is overlapped by the virtual keyboard?

      regards,
      Tobias

      L Offline
      L Offline
      lemons
      wrote on last edited by
      #2

      @Tobias-Fensch I don't know about auto-scroll, but you could simply add a bottomMargin to your "view container", if the keyboard is active (expanded).
      This should have more or less the same effect.

      StackView {
          Layout.fillWidth: true
          Layout.fillHeight: true
          Layout.bottomMargin: keyboard.isActive ? keyboard.height : 0
          clip: true
      }
      
      1 Reply Last reply
      0
      • T Offline
        T Offline
        Tobias Fensch
        wrote on last edited by
        #3

        Hello,
        thanks for your response but that's not really practical. The content of the container view is compressed than and the content is not visible anymore.

        The solution could be to use a ScrollView. I will try that.

        I am surprised that there does not seem to be an "official solution", since that is a common issue.

        regards,
        Tobias

        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