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
Forum Updated to NodeBB v4.3 + New Features

Qt Application Manager on Android

Scheduled Pinned Locked Moved Solved Mobile and Embedded
5 Posts 2 Posters 737 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 12 Sept 2018, 18:39 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
    • S Offline
      S Offline
      sierdzio
      Moderators
      wrote on 13 Sept 2018, 07:07 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 13 Sept 2018, 13:54
      1
      • S sierdzio
        13 Sept 2018, 07:07

        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 13 Sept 2018, 13:54 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
        • S sierdzio
          13 Sept 2018, 07:07

          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 14 Sept 2018, 14:08 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
          • S Offline
            S Offline
            sierdzio
            Moderators
            wrote on 16 Sept 2018, 06:07 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

            5/5

            16 Sept 2018, 06:07

            • Login

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