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. Scrolling parent of text area

Scrolling parent of text area

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

    Hi.
    How can I scroll parent of this text area by scrolling text area when its value reached the end?

    Page {
        id: page 
        Flickable {
                id: flickable
                anchors.fill: parent
                anchors.margins: 5
                boundsBehavior: Flickable.OvershootBounds
                contentHeight: contentItem.childrenRect.height + 10 
                Rectangle {
                    id: rect
                    width: 300
                    height: 200
                    color: "#00000000"
                    border.width: 1
                    border.color: 'grey'
                    radius: 5
                    anchors.horizontalCenter: parent.horizontalCenter
                    anchors.top: parent.top
                    anchors.topMargin: 10
                }
                Flickable {
                    flickableDirection: Flickable.VerticalFlick
                    anchors.fill: rect
                    anchors.leftMargin: 5
                    anchors.rightMargin: 5
                    TextArea.flickable: TextArea {
                        id: textarea
                        horizontalAlignment: Text.AlignLeft
                        wrapMode: TextEdit.WordWrap
                    }
                }
        }
    }
    
    1 Reply Last reply
    0
    • I Offline
      I Offline
      isdsi
      wrote on last edited by
      #2

      @addr3ss said in Scrolling parent of text area:

      rent of this text area by scrolling text area when its value reached

      ScrollView {
      id: view
      anchors.fill: parent

      TextArea {
          text: "TextArea\n...\n...\n...\n...\n...\n...\n"
      }
      

      }

      Check this link below.
      https://doc.qt.io/qt-5/qml-qtquick-controls2-textarea.html#scrollable-textarea

      A 1 Reply Last reply
      0
      • I isdsi

        @addr3ss said in Scrolling parent of text area:

        rent of this text area by scrolling text area when its value reached

        ScrollView {
        id: view
        anchors.fill: parent

        TextArea {
            text: "TextArea\n...\n...\n...\n...\n...\n...\n"
        }
        

        }

        Check this link below.
        https://doc.qt.io/qt-5/qml-qtquick-controls2-textarea.html#scrollable-textarea

        A Offline
        A Offline
        addr3ss
        wrote on last edited by
        #3

        @isdsi It doesnt my answer.Nothing changed.

        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