Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. Qt 6
  4. Qt 6.3.0 on Android

Qt 6.3.0 on Android

Scheduled Pinned Locked Moved Unsolved Qt 6
2 Posts 1 Posters 428 Views 1 Watching
  • 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.
  • B Offline
    B Offline
    bee65
    wrote on last edited by
    #1

    I have an app that uses C++/QML integration using QML_ELEMENT. The qml files have

    import com.mycompany.myapp
    

    and the pro file has

    QML_IMPORT_NAME = com.mycompany.myapp
    QML_IMPORT_MAJOR_VERSION = 1
    

    This works fine under Qt 6.2.4, although the import statement is underlined in red indicating a problem. When I run it under Qt 6.3.0 on Android, I am getting a runtime error

    W default : QQmlApplicationEngine failed to load component
    W default : qrc:/main.qml:3:1: module "com.mycompany.myapp" is not installed
    

    I have the exact same behavior with the "Extending QML - Adding Types Example" https://doc.qt.io/qt-6/qtqml-referenceexamples-adding-example.html. I had to add QT += quick to get it to run on android. With that change it runs fine with Qt 6.2.3, but with 6.3.0 it gives a runtime error

    W libadding_arm64-v8a.so: QQmlComponent: Component is not ready
    W libadding_arm64-v8a.so: QList(qrc:example.qml:52:1: module "People" is not installed
    W libadding_arm64-v8a.so:     import People 1.0
    W libadding_arm64-v8a.so:     ^)
    W libadding_arm64-v8a.so: exit app 0
    

    Both apps work fine with 6.3.0 on Windows. Is there something broken with 6.3.0 on Android, or is there something more we have to set up the deployment?

    B 1 Reply Last reply
    0
    • B bee65

      I have an app that uses C++/QML integration using QML_ELEMENT. The qml files have

      import com.mycompany.myapp
      

      and the pro file has

      QML_IMPORT_NAME = com.mycompany.myapp
      QML_IMPORT_MAJOR_VERSION = 1
      

      This works fine under Qt 6.2.4, although the import statement is underlined in red indicating a problem. When I run it under Qt 6.3.0 on Android, I am getting a runtime error

      W default : QQmlApplicationEngine failed to load component
      W default : qrc:/main.qml:3:1: module "com.mycompany.myapp" is not installed
      

      I have the exact same behavior with the "Extending QML - Adding Types Example" https://doc.qt.io/qt-6/qtqml-referenceexamples-adding-example.html. I had to add QT += quick to get it to run on android. With that change it runs fine with Qt 6.2.3, but with 6.3.0 it gives a runtime error

      W libadding_arm64-v8a.so: QQmlComponent: Component is not ready
      W libadding_arm64-v8a.so: QList(qrc:example.qml:52:1: module "People" is not installed
      W libadding_arm64-v8a.so:     import People 1.0
      W libadding_arm64-v8a.so:     ^)
      W libadding_arm64-v8a.so: exit app 0
      

      Both apps work fine with 6.3.0 on Windows. Is there something broken with 6.3.0 on Android, or is there something more we have to set up the deployment?

      B Offline
      B Offline
      bee65
      wrote on last edited by
      #2

      I created a bug report https://bugreports.qt.io/browse/QTBUG-102762

      1 Reply Last reply
      0

      • Login

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