-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
6.9.1
-
Android Studio x86_64 Emulator (API 35),
Windows 11 23H2,
CMake = 3.30.5,
Gradle = 8.14,
Qt Tools for Android Studio = 4.1,
QtGP = 1.3,
Kotlin = 2.0.21,
Java = jdk-17,
NDK = 27.2.12479018
What:
When moving from an Activity with a qtQuickView in it to another Activity or a second screen in a navGraph without interacting with said View and then returning, the qtQuickView is then frozen and unable to be interacted with. Logcat gives a warning from “qt.qpa.input.methods”:
“Touch event for non-existing window X”
where X is the window id/index.
When moving into the second activity or the second navGraph route, this is printed in the log.
Full runtime log with the same route as described below:
nonExistingWindowRuntimeLog.txt
The example highlights two different behaviours:
- The first QtQuickView is initialized inside onCreate, and when returning to the screen for the second time (recompose), the View is gone and interacting with it's would-be position writes the non-existing window warning to log
- The second QtQuickView is initialized in the Composable function where it's AndroidView is also located. In this implementation however, the non-existing window warning does not get logged when interacting with it the same way as the first one
Steps to reproduce:
- Open app
- Click "Disappearing Views"
- Do not interact with either of the visible QtQuickViews
- Click "Second Screen"
- Click "Return"
- EXPECTED = Both QtQuickViews are visible as before
- ACTUAL = Both QtQuickViews are gone, top one citing non-existing window warning in log and the bottom one not
Example video:
Example project:
QTBUG-139098.7z
(Note: replace QtBuild file directories in build.gradle with your local installations)
- resulted from
-
QTBUG-138112 How to use QtQuickView in Jetpack Compose?
-
- Reported
-