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. Wrong text selection after scolling when Textarea is readonly and embeded in a Flickable .
QtWS25 Last Chance

Wrong text selection after scolling when Textarea is readonly and embeded in a Flickable .

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
5 Posts 2 Posters 391 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.
  • S Offline
    S Offline
    Sheep
    wrote on 26 Jul 2024, 06:53 last edited by
    #1

    As the title says, this can be reproduced by running the file in "+touch/texteditor.qml" in the "texteditor" example. as you may notice in the attached video, when i try to select the text at the top, its working fine, but when selection handles are persistent and i scroll to the text at the bottom, and i try to select, the app is selecting wrong text.

    demo video

    1. Is it a bug or i have to set some other poperties
    2. how can i make the app deselect the selected text, because if you text the same app and select "Copy", the selection handles remain there. i tried setting the "persistentSelection" property to false, but it didnot help either.

    Am using Qt 6.5.1.

    1 Reply Last reply
    1
    • S Offline
      S Offline
      Sheep
      wrote on 4 Sept 2024, 13:23 last edited by
      #2

      Hasn`t anyone experienced this issue, it can be easily reproduced by running the qml texteditor example on android, try typing a lot of text, ensure you return to the "readonly" state (tap the "tick" icon at the extreme top left after typing the text), then scroll to the extreme bottom or extreme top and try to select any word ...you will notice the textarea will select wrong words instead.

      1 Reply Last reply
      0
      • K Offline
        K Offline
        KH-219Design
        wrote on 4 Sept 2024, 17:15 last edited by
        #3

        I cannot try at the moment to reproduce this myself, but based on the video (and the fact that you are using an example written by Qt team) it certainly seems like a bug.

        Do you think this is the same bug: https://bugreports.qt.io/browse/QTBUG-115004

        They seem to indicate (on the bugreports site) that it is fixed in 6.5.3. You could try using 6.5.3 and see if that helps.

        www.219design.com
        Software | Electrical | Mechanical | Product Design

        1 Reply Last reply
        0
        • S Offline
          S Offline
          Sheep
          wrote on 9 Sept 2024, 04:20 last edited by
          #4

          At last some response...
          I used Qt 6.7.2 version , with android Clang arm64-v8a, sorry i forgot to include that, but still i will try your solution.

          1 Reply Last reply
          0
          • K Offline
            K Offline
            KH-219Design
            wrote on 9 Sept 2024, 13:58 last edited by
            #5

            @Sheep more generally, I want to emphasize that to your point (1) "is it a bug", I certainly feel that this qualifies as a bug. That's my opinion/assessment as a long-time Qt user. (and as an owner of an Android phone and long-time Android user.) But I am not a Qt employee nor have I contributed code to the framework.

            So you might get a better answer posting/reporting on the bugtracker. https://doc.qt.io/qt-6/bughowto.html

            If you open a bug and they end up flagging it as a duplicate of the older ticket, that should be fine on their end.

            On the other hand, if you post your video onto the prior bug (the one I linked earlier), they may tell you to open a fresh new ticket.

            Or someone may even say "your video shows the intended behavior" and perhaps they will give you some workaround or tips.

            In any case, you are more likely to get attention from a Qt developer that way.

            www.219design.com
            Software | Electrical | Mechanical | Product Design

            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