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. QML plugins path in iOS
Forum Updated to NodeBB v4.3 + New Features

QML plugins path in iOS

Scheduled Pinned Locked Moved Solved Mobile and Embedded
5 Posts 3 Posters 891 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.
  • J Offline
    J Offline
    Juan Garcia
    wrote on 15 Nov 2018, 15:15 last edited by
    #1

    How I can set a path to search for my custom plugin that have directory with right qml plugin declaration (plugins.qmltypes and qmldir) for iOS?

    When I install my plugin in Qt directory (~/Qt/5.11.1/ios/qml) it works like a charm but I want to do not install and modify the path where Qt search for plugins when deploying iOS app on devices.

    thanks in advance.

    Juan.

    R 1 Reply Last reply 16 Nov 2018, 07:25
    0
    • D Offline
      D Offline
      dheerendra
      Qt Champions 2022
      wrote on 16 Nov 2018, 03:38 last edited by
      #2

      Just look at my previous post on the subject

      Dheerendra
      @Community Service
      Certified Qt Specialist
      http://www.pthinks.com

      1 Reply Last reply
      0
      • J Juan Garcia
        15 Nov 2018, 15:15

        How I can set a path to search for my custom plugin that have directory with right qml plugin declaration (plugins.qmltypes and qmldir) for iOS?

        When I install my plugin in Qt directory (~/Qt/5.11.1/ios/qml) it works like a charm but I want to do not install and modify the path where Qt search for plugins when deploying iOS app on devices.

        thanks in advance.

        Juan.

        R Offline
        R Offline
        raven-worx
        Moderators
        wrote on 16 Nov 2018, 07:25 last edited by
        #3

        @Juan-Garcia
        try to add the following to your .pro file:

        ios {
            MyPlugin_BUNDLE.files += $$files(path/to/my/plugin/*, true)
            MyPlugin_BUNDLE.path = qml/import/path
            QMAKE_BUNDLE_DATA += MyPlugin_BUNDLE
        }
        

        --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
        If you have a question please use the forum so others can benefit from the solution in the future

        1 Reply Last reply
        0
        • J Offline
          J Offline
          Juan Garcia
          wrote on 21 Nov 2018, 12:55 last edited by
          #4

          Hi @dheerendra and @raven-worx ,

          the issue was solved using this:

          QML_IMPORT_PATH += /path/to/qml
          QMLPATHS += $$QML_IMPORT_PATH
          

          This is a workaround for this: https://bugreports.qt.io/browse/QTBUG-58657

          Thanks for your help.

          1 Reply Last reply
          1
          • D Offline
            D Offline
            dheerendra
            Qt Champions 2022
            wrote on 22 Nov 2018, 01:28 last edited by
            #5

            Cool. You can move this issue to solved state.

            Dheerendra
            @Community Service
            Certified Qt Specialist
            http://www.pthinks.com

            1 Reply Last reply
            0

            5/5

            22 Nov 2018, 01:28

            • 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