Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Qt Qml Android studio plugin is crashing
Forum Updated to NodeBB v4.3 + New Features

Qt Qml Android studio plugin is crashing

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
3 Posts 1 Posters 241 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Scott Izi
    wrote on 22 Mar 2025, 19:04 last edited by
    #1

    I had installed the Qt QML Android Studio extension to add QML to an Android Studio project for testing.
    It is a JetPack compose project and I'm using the NavigationBar for better UX. The issue is that I need the Scaffold content property to display QML pages that I am loading using QtQuickView's .loadContent() method.
    It seems to work the initially but when I change navigation routes the application crashes with the error:
    47b17a39-7960-4eff-af34-b298a0fa6e8e-image.png

    Now, ChatGPT fixed this issue like so: 9385dc66-f404-4cf3-8640-2f920435d1b4-image.png

    The fix seems to make matters worse because now when you navigate to the next route the application crashes and StackTrace is somewhat gibberish.

    ffb41444-0fcd-41b0-91ba-912f5e424658-image.png

    Has anyone else encountered this??

    The StackTrace:
    49a80ccf-a6d1-46fd-ae9b-d2ad6fe98fb9-image.png

    1 Reply Last reply
    0
    • S Offline
      S Offline
      Scott Izi
      wrote on 23 Mar 2025, 10:31 last edited by Scott Izi
      #2

      So, I figured out the answer, although I am not sure it's efficient. The key is to have a new QtQuickView for every composable item. You can forget about the ChatGPT part, and I recommend checking this StackOverflow answer as well.

      image.png

      S 1 Reply Last reply 23 Mar 2025, 12:24
      0
      • S Scott Izi
        23 Mar 2025, 10:31

        So, I figured out the answer, although I am not sure it's efficient. The key is to have a new QtQuickView for every composable item. You can forget about the ChatGPT part, and I recommend checking this StackOverflow answer as well.

        image.png

        S Offline
        S Offline
        Scott Izi
        wrote on 23 Mar 2025, 12:24 last edited by
        #3

        @Scott-Izi the StackOverflow is here

        1 Reply Last reply
        0

        2/3

        23 Mar 2025, 10:31

        • Login

        • Login or register to search.
        2 out of 3
        • First post
          2/3
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved