Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
6.0.1
-
Host: Windows 10 x64
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