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

QQmlApplicationEngine::loadFromModule() not working on Android

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • P2: Important
    • 6.5
    • 6.5.3
    • None
    • openSUSE Tumbleweed, building for Android armv7 with Qt 6.5.3
    • Android
    • f77c59459 (dev), e1fbca3d7 (6.6), 1f3cf4208 (6.5)

    Description

      I created a QML application with the default Qt Creator QML template, which includes a call to QQmlApplicationEngine::loadFromModule in main(), with arguments "com.example.qml_uri" and "Main". On Linux, this code compiles and runs, loading the autogenerated Main.qml. However, on Android, the app exits with the following message:

      W Muziko  : QQmlApplicationEngine failed to load component
      W Muziko  : <Unknown File>: Module "com.example.qml_uri" contains no type named "Main"

      This seems like unintended behavior, and I certainly don't see any documentation on loadFromModule that would imply that this is a problem.

      Attachments

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

        Activity

          People

            qtqmlteam Qt Qml Team User
            lorendb Loren Burkholder
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes