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. How to tell Designer to look for runtime dependencies in the folder of the plugin?

How to tell Designer to look for runtime dependencies in the folder of the plugin?

Scheduled Pinned Locked Moved Unsolved General and Desktop
designerpluginwindows
4 Posts 2 Posters 1.8k Views 3 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
    Jakob
    wrote on last edited by
    #1

    For our application we have a bunch of custom widgets, we are combined into a single Designer plugin, such that we can use these custom widgets directly in the designer. Our CMake-based build infrastructure is capable of deploying that plugin (we're on Windows, so a .dll) into the QT_PLUGIN_PATH folder. This works very nicely, except for runtime dependencies of the dll.

    I was expecting that if the Designer found a plugin in a certain folder, it would also look for runtime dependencies in that same folder. It doesn't seem to do that, and I can't find any documentation about how to configure Designer to do that.

    One obvious work-around would be to add the plugin path to the PATH environment variable, but it seems more logical that the Designer (in effect probably QPluginLoader or QLibrary) would take care of this, much like the containing folder of any given executable in Windows is also automatically first looked for runtime dependencies. Can I achieve that somehow?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Are you doing a "monolithic" plugin build ? i.e. the plugin is also the dll that your application needs to run ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      J 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi,

        Are you doing a "monolithic" plugin build ? i.e. the plugin is also the dll that your application needs to run ?

        J Offline
        J Offline
        Jakob
        wrote on last edited by
        #3

        @SGaist Thanx for thinking with me. I'm not entirely sure what you mean though. The plugin indeed is a dll, that we want to be loaded by Designer. However, we directly instantiate the classes in the dll in our application. Our application does not load it as a plugin.

        Nevertheless, the build infrastructure for our application deploys all runtime dependencies into a single folder, from which we can run/test and create an installer. For the Designer however, such a thing doesn't work, because that would imply copying our application-specific runtimes into the installation folder of Qt

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          I was thinking about the Splitting Up The Plugin which is the way to go when building an application using your custom designer plugin.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          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