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. Which path to use for QPluginLoader with Android ?
Forum Update on Monday, May 27th 2025

Which path to use for QPluginLoader with Android ?

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
2 Posts 1 Posters 560 Views
  • 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.
  • S Offline
    S Offline
    Soda31
    wrote on 2 Jul 2018, 15:36 last edited by
    #1

    Hello,
    I created a custom plugin that is loaded correctly on Windows 10
    Plugin has dll and qmldir in same folder, loading plugin works well

    For Android I set android-extra-plugins for androidqtdeploy tool (I use cmake)
    I have qmldir in assets folder and my plugin (so lib) in libs\armeabi-v7a folder

    I do not know what to give in parameter of QPluginLoader , when the apk is deployed, what is the absolute or relative path to use ?

    Thanks !

    S 1 Reply Last reply 2 Jul 2018, 16:30
    0
    • S Soda31
      2 Jul 2018, 15:36

      Hello,
      I created a custom plugin that is loaded correctly on Windows 10
      Plugin has dll and qmldir in same folder, loading plugin works well

      For Android I set android-extra-plugins for androidqtdeploy tool (I use cmake)
      I have qmldir in assets folder and my plugin (so lib) in libs\armeabi-v7a folder

      I do not know what to give in parameter of QPluginLoader , when the apk is deployed, what is the absolute or relative path to use ?

      Thanks !

      S Offline
      S Offline
      Soda31
      wrote on 2 Jul 2018, 16:30 last edited by
      #2

      I just tryed QCoreApplication::applicationDirPath(), seems to do some things

      I forgot to indicate that I set a root path, search all files contained in root path (like plugin) and try QObject* plugin = loader.instance() for each file found
      Not sure that it is the best way however

      1 Reply Last reply
      0

      1/2

      2 Jul 2018, 15:36

      • Login

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