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 Application Manager on Android
Qt 6.11 is out! See what's new in the release blog

Qt Application Manager on Android

Scheduled Pinned Locked Moved Solved Mobile and Embedded
5 Posts 2 Posters 873 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.
  • T Offline
    T Offline
    TopNotch_Mach07
    wrote on last edited by
    #1

    Hi ,

    We are trying to run a project which is based on Qt Application Manager on Android.
    We had taken qtapplicationmanager/example/custom-app-man as our starting point.

    Our Project has lots of 3rdParty and Custom qml plugins as dependency .

    In our .pro file , we tried to add our qml using QML_IMPORT_PATH

    QML_IMPORT_PATH += /path/to/custom/qml
    QML_IMPORT_PATH += /path/to/custom/qml/plugins.so(s)

    In the generated .apk file we can see the folders inside /path/to/custom/qml added as qml dependency .

    But the qml files which are at /path/to/custom/qml is not included.

    While the folders inside /path/to/custom/qml is getting added , But the QML files in that directory is not getting added.

    Is there any special settings do i have mention in .pro file ?

    Thanks in Advance.

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      The variable is QML2_IMPORT_PATH according to the documentation https://doc.qt.io/qt-5/qtqml-modules-identifiedmodules.html.

      Anyway, in order to ship QML files with your app, add them to a Qt Resource File (QRC).

      (Z(:^

      T 2 Replies Last reply
      1
      • sierdzioS sierdzio

        The variable is QML2_IMPORT_PATH according to the documentation https://doc.qt.io/qt-5/qtqml-modules-identifiedmodules.html.

        Anyway, in order to ship QML files with your app, add them to a Qt Resource File (QRC).

        T Offline
        T Offline
        TopNotch_Mach07
        wrote on last edited by
        #3

        @sierdzio
        Sorry I forgot mention , we tried that as well like

        QML2_IMPORT_PATH=$$QML_IMPORT_PATH

        1 Reply Last reply
        0
        • sierdzioS sierdzio

          The variable is QML2_IMPORT_PATH according to the documentation https://doc.qt.io/qt-5/qtqml-modules-identifiedmodules.html.

          Anyway, in order to ship QML files with your app, add them to a Qt Resource File (QRC).

          T Offline
          T Offline
          TopNotch_Mach07
          wrote on last edited by
          #4

          @sierdzio

          @sierdzio said in Qt Application Manager on Android:

          Anyway, in order to ship QML files with your app, add them to a Qt Resource File (QRC).

          Is there any way using the qml file without using .qrc file ?

          1 Reply Last reply
          0
          • sierdzioS Offline
            sierdzioS Offline
            sierdzio
            Moderators
            wrote on last edited by
            #5

            On Android it's tricky, but as far as I know it is possible to:

            • use Android assets
            • load QML from network

            (Z(:^

            1 Reply Last reply
            2

            • Login

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