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

Android: View3D zooms in to bottom left after switching Activities

XMLWordPrintable

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

      When navigating through different Activities in Jetpack compose, a View3D component zooms in on its bottom left corner. This happens, but may not be limited to only happening, when:

      1. The app is opened
      2. Starting an Activity (doesn't need to have QML content)
      3. Backing out to previous Activity
      4. Moving to a different Activity with a View3D

      And when:

      1. The app is opened
      2. Open Activity with View3D
      3. Back out
      4. Open the same Activity with View3D

      Above on the left is the expected (and initial view if its the first opened Activity), and on the right is the zoomed in screen.

       

      Steps to reproduce:

      1. Open app
      2. Click "View3D Debug Screen"
      3. Back out
      4. Click "Empty Activity"
      5. Back out
      6. Click "View3D Debug Screen" again
        1. EXPECTED = View3D looks the same as it did the first time
        2. ACTUAL = View3D is now zoomed in to the bottom left

       

      Example video:
      navigation--zoom-in-video.mkv

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

        1. expected view.png
          expected view.png
          80 kB
        2. image-2025-08-14-12-13-48-028.png
          image-2025-08-14-12-13-48-028.png
          80 kB
        3. navigation--zoom-in-video.mkv
          9.65 MB
        4. navigation--zoom-in-video.mp4
          6.72 MB
        5. QTBUG-139173.7z
          91 kB
        6. Zoomed in view.png
          Zoomed in view.png
          35 kB
        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:
            1 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes