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

Cannot load QtQuickViewContent after QtQuickView is attached to view hierarchy

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P1: Critical
    • None
    • 6.8.3, 6.11
    • QPA: Android
    • Android

    Description

      See Archive.zip for example project, based on the qtquickview_kotlin example.

      Steps:

      1. Create a QtQuickView instance and add it to the view hierarchy (LayoutGroup.addView(...))
      2. After the view hierarchy has been loaded and rendered, call QtQuickView::loadContent() on the view added in step 1.
        • In the example project, this is done via button press.

      Result:

      Nothing happens, Qt libs are loaded in the background and the Qt main thread starts spinning, but the QML view is not shown.

      Desired result:

      The QtQuickViewContent gets loaded.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qtandroidteam Qt Android Team
            pevirkku Petri Virkkunen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes