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. How to set alway show indicator in TextArea scrollbar?
Forum Updated to NodeBB v4.3 + New Features

How to set alway show indicator in TextArea scrollbar?

Scheduled Pinned Locked Moved Solved QML and Qt Quick
3 Posts 2 Posters 670 Views 1 Watching
  • 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.
  • atmel.ruA Offline
    atmel.ruA Offline
    atmel.ru
    wrote on last edited by
    #1

    Hello,
    In Quick Control 2, how to set scrollbar indicator alway on in TextArea which attaches to a Flickable.

    Flickable {
        id: flickable
        anchors.fill: parent
    
        TextArea.flickable: TextArea {
            text: "TextArea\n...\n...\n...\n...\n...\n...\n"
            wrapMode: TextArea.Wrap
        }
    
        ScrollBar.vertical: ScrollBar { }
    }
    
    1 Reply Last reply
    0
    • jpnurmiJ Offline
      jpnurmiJ Offline
      jpnurmi
      wrote on last edited by
      #2

      Please file in a suggestion. Here's a little trick as a temporary workaround :)

          ScrollBar.vertical: ScrollBar {
              active: flickable.moving || pressed || hovered || true
          }
      
      1 Reply Last reply
      1
      • atmel.ruA Offline
        atmel.ruA Offline
        atmel.ru
        wrote on last edited by
        #3

        Thanks jpnurmi, that's awesome trick :)

        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