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 enable scrolling in the TextArea on the touchscreen devices
Forum Updated to NodeBB v4.3 + New Features

How to enable scrolling in the TextArea on the touchscreen devices

Scheduled Pinned Locked Moved QML and Qt Quick
1 Posts 1 Posters 926 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.
  • M Offline
    M Offline
    maxim.prishchepa
    wrote on last edited by
    #1

    Hello all!
    I have such code:
    @TextArea {
    id: inp
    anchors.fill: parent
    wrapMode: TextInput.WordWrap
    backgroundVisible: true
    frameVisible: false
    style: TextAreaStyle {
    backgroundColor: "white"
    }
    height: inp.font.pixelSize * 6
    clip: true
    textFormat: TextEdit.RichText
    inputMethodHints: Qt.ImhNoPredictiveText
    onTextChanged: {
    if (getText(0, length) != "")
    {
    //change icon
    } else {
    //change icon
    }
    }
    }@

    on the desktop - scrolling are work correct, but at the Android with touchscreen - i can't scroll text on top.
    for example, i type in text area 100000000 lines of text, i see only 5 last, and i want to read previouse, on tuchscreen i can't do this, why? O_o

    Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz).

    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