Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Unsolved QML VirtualKeyboard - AutoScroll Mode?

    QML and Qt Quick
    2
    3
    358
    Loading More Posts
    • 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
      Tobias Fensch last edited by

      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 Reply Quote 0
      • L
        lemons @Tobias Fensch last edited by

        @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 Reply Quote 0
        • T
          Tobias Fensch last edited by

          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 Reply Quote 0
          • First post
            Last post