Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-85773

QML TextEdit copy() copies text twice on Android

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: 5.12.9
    • Fix Version/s: None
    • Component/s: QPA
    • Labels:
      None
    • Environment:
      Tested on
      - Pixel 3a, Android 11 Beta
      - Samsung Galaxy S7, Android 8.0
    • Platform/s:
      Android

      Description

      The following code will copy the content of the text edit twice into the system clipboard

      text.selectAll();
      text.copy();
      text.deselect();
      

      While using QClipboard via a C++ Helper class does work correctly.

      I attached a sample application illustrating the problem.

      Important for reproducing: This doesn't seem to happen in all text fields. E. g. I can reproduce it when pasting to Chrome's URL bar, but not if I paste the text into the google start page.

        Attachments

          Issue Links

          For Gerrit Dashboard: QTBUG-85773
          # Subject Branch Project Status CR V

            Activity

              People

              Assignee:
              stromme Christian
              Reporter:
              jan.lorenz Jan Lorenz
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:

                  Gerrit Reviews

                  There is 1 open Gerrit change