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. ScrollView different behaviour on Windows and Android

ScrollView different behaviour on Windows and Android

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 191 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.
  • RequR Offline
    RequR Offline
    Requ
    wrote on last edited by
    #1

    Hello,

    I have problem with impelementing ScrollView component for my cross-platform application.

    The problem is I have different behaviour on desktop and on mobile.

    ScrollView
    {
        id: textScroll;
        anchors.fill: parent
        clip: true
    
       ScrollBar.horizontal.policy: ScrollBar.AlwaysOff;
    
    
       TextArea 
       {
              width: parent.width;
               height: contentHeight;
               wrapMode: TextEdit.Wrap;
         	   readOnly: true;
              horizontalAlignment: Text.AlignJustify;
            text: "  long bla bla"
       }
    }
    
    

    For Desktop, the behaviour is corretly, I can scroll text only vertical.
    For Android when i'm touching screen I can dragg text outside the ScrollView Area invertical and horizontal.

    I know that according to documentation the behaviour is ok https://doc.qt.io/qt-5/qml-qtquick-controls2-scrollview.html
    but how can I handle this for mobile? I just wanta scroll this component instead of dragging it and I can't find any usefull property for that component for this case.

    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