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

QtQuickView loses it's real-time updating when a composable element pops over it

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • None
    • 6.9.1
    • QPA: Android, Quick: 3D
    • 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
    • Android

      What:

      Running into an error where a QtQuickView no longer updates visually or reacts to its properties being modified, when a Composable element OR an android keyboard gets displayed on top of the QtQuickView. In this case, the QtQuickView is displayed in Jetpack Compose the following way:

      The issue is purely visual:

      When interacting with a composable element that modifies .qml properties and logging the result, the expected change happens.

      When interacting with a button displayed in the QtQuickView, the expected result is correctly logged.

      In both cases however, no visual change in the QtQuickView happens as expected.

      Example case and code:


      Log snippet is from after the QtQuickView has visually frozen.

      What happens here:

      1. Call Kotlin function, observe values
      2. Call QML function 6 times, resulting in angle increasing by 30°
      3. Call Kotlin function again
      4. Observed difference matches the expectation.

      After doing this, no visual difference is observed and the visually frozen QML button can be considered functional, so interaction isn't lost. (See example video)

       

      Steps to reproduce:

      1. Open app
      2. Click "Pure Compose Example"
      3. Click both "Update QtQuickView" and "Rotate X" buttons to see visual change, do not interact with the text field yet. You can also interact with the View3D.
      4. After observing visual change and seeing the expected behaviour, interact with the text field
      5. Exit from the input pop-up
      6. Attempt to interact with the two buttons mentioned earlier, you may also try to interact with the View3D
        1. EXPECTED: QtQuickView content visually updates as before
        2. ACTUAL: No visual changes happen after step 4.

       

      Example video:

      visual-freeze-example-video.mkv

      (Note: same issue from QTBUG-138922 is still present in this sample)

      Example project:
      QTBUG-138985.7z
      (Note: replace QtBuild file directories in build.gradle with your local installations)

        1. image-2025-08-06-14-11-52-227.png
          19 kB
          Tino Marttila
        2. image-2025-08-06-14-26-27-035.png
          68 kB
          Tino Marttila
        3. image-2025-08-06-14-29-48-009.png
          58 kB
          Tino Marttila
        4. image-2025-08-06-14-30-00-946.png
          58 kB
          Tino Marttila
        5. image-2025-08-06-14-31-31-375.png
          12 kB
          Tino Marttila
        6. visual-freeze-example-video.mkv
          10.24 MB
          Tino Marttila
        7. QTBUG-138985.7z
          91 kB
          Tino Marttila
        8. visual-freeze-example-video.mp4
          8.38 MB
          Assam Boudjelthia
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            qtandroidteam Qt Android Team
            tinomarttila Tino Marttila
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes