Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt Plugins with external libraries
QtWS25 Last Chance

Qt Plugins with external libraries

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 692 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.
  • mbraaM Offline
    mbraaM Offline
    mbraa
    wrote on last edited by
    #1

    I'm devellopping a QT application with QT Plugins. my plugins need external libraries(.dll) to run. I want to put all my plugins in a "plugins" folder in a folder for each plugin. In each folder I want to put the librairies link to the plugin. At this moment, I must put all libraries of all plugins next to the executable of my application.

    Have you any idea to give the path of the plugin external application to the main application?

    Joel BodenmannJ 1 Reply Last reply
    0
    • mbraaM mbraa

      I'm devellopping a QT application with QT Plugins. my plugins need external libraries(.dll) to run. I want to put all my plugins in a "plugins" folder in a folder for each plugin. In each folder I want to put the librairies link to the plugin. At this moment, I must put all libraries of all plugins next to the executable of my application.

      Have you any idea to give the path of the plugin external application to the main application?

      Joel BodenmannJ Offline
      Joel BodenmannJ Offline
      Joel Bodenmann
      wrote on last edited by Joel Bodenmann
      #2

      The QPluginLoader allows to load a plugin from any location. You can either pass the file path directly to the constructor or you can use QPluginLoader::setFileName() to point to your plugin.

      Industrial process automation software: https://simulton.com
      Embedded Graphics & GUI library: https://ugfx.io

      1 Reply Last reply
      0
      • mbraaM Offline
        mbraaM Offline
        mbraa
        wrote on last edited by
        #3

        the probleme is not with the plugin but with the library that the plugin depends I can't put it in th same folder. I have to put it in the .exe folder of my main application

        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