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

QML plugins path in iOS

Scheduled Pinned Locked Moved Solved Mobile and Embedded
5 Posts 3 Posters 975 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 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.

    raven-worxR 1 Reply Last reply
    0
    • dheerendraD Offline
      dheerendraD Offline
      dheerendra
      Qt Champions 2022
      wrote on 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

        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.

        raven-worxR Offline
        raven-worxR Offline
        raven-worx
        Moderators
        wrote on 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 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
          • dheerendraD Offline
            dheerendraD Offline
            dheerendra
            Qt Champions 2022
            wrote on 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

            • Login

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