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

Android: QGuiApplication::clipboard()->setText() works only once

    XMLWordPrintable

Details

    • Android

    Description

      QGuiApplication::clipboard()->setText() works only once. Subsequent calls to this method result in:

      E Qt JAVA : Failed to set clipboard data
      E Qt JAVA : java.lang.NullPointerException
      E Qt JAVA : at java.util.Objects.requireNonNull(Objects.java:220)
      E Qt JAVA : at org.qtproject.qt.android.QtNative.updatePrimaryClip(QtNative.java:1049)
      E Qt JAVA : at org.qtproject.qt.android.QtNative.setClipboardText(QtNative.java:1009)
      E Qt JAVA : at org.qtproject.qt.android.QtNative.startQtApplication(Native Method)
      E Qt JAVA : at org.qtproject.qt.android.QtNative$7.run(QtNative.java:624)
      E Qt JAVA : at org.qtproject.qt.android.QtThread$1.run(QtThread.java:61)
      E Qt JAVA : at java.lang.Thread.run(Thread.java:923)

       

      Tested with Android API 27 ARMv7 and Android API 30 x86

      Attachments

        Activity

          People

            qtandroidteam Qt Android Team
            holynoob dron ven
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: