Details
-
Bug
-
Resolution: Fixed
-
P3: Somewhat important
-
6.7, 6.8
-
None
-
-
ecd4623f0 (dev), e3bea87ee (6.8)
-
2024wk40s3FOQtforAndroid
Description
When Keyboard is visible and we use a shortcut on QMenu (and showPopup is called on platformMenu) - application crash:
E AndroidRuntime: FATAL EXCEPTION: main E AndroidRuntime: Process: org.qtproject.example.QMenuCrash, PID: 11845 E AndroidRuntime: java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first. E AndroidRuntime: at android.view.ViewGroup.addViewInner(ViewGroup.java:5248) E AndroidRuntime: at android.view.ViewGroup.addView(ViewGroup.java:5077) E AndroidRuntime: at android.view.ViewGroup.addView(ViewGroup.java:5049) E AndroidRuntime: at org.qtproject.qt.android.QtLayout.setLayoutParams(QtLayout.java:212) E AndroidRuntime: at org.qtproject.qt.android.QtActivityDelegate.lambda$openContextMenu$9$org-qtproject-qt-android-QtActivityDelegate(QtActivityDelegate.java:313) E AndroidRuntime: at org.qtproject.qt.android.QtActivityDelegate$$ExternalSyntheticLambda9.run(D8$$SyntheticClass:0) E AndroidRuntime: at android.os.Handler.handleCallback(Handler.java:942) E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:99) E AndroidRuntime: at android.os.Looper.loopOnce(Looper.java:201) E AndroidRuntime: at android.os.Looper.loop(Looper.java:288) E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:7872) E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method) E AndroidRuntime: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548) E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:936)
For reproduction use attached main.cpp:
Click on TextEdit and type something. Press space to make sure it is not pre-edit text.
Attachments
Issue Links
- blocks
-
QTBUG-124360 Android TV system keyboard no long opens on text fields in 6.7
- Closed