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. Loading custom plugin in the release mode
Qt 6.11 is out! See what's new in the release blog

Loading custom plugin in the release mode

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 986 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.
  • A Offline
    A Offline
    aliks-os
    wrote on last edited by
    #1

    Please advise, I wrote the custom plugin. In the debug mode all works fine. But when the plugin and application are compiled in the release mode, the application not loads plugin

        auto pluginLoader = new QPluginLoader(pluginsDir.absoluteFilePath(fileName), this);
        auto plugin = pluginLoader->instance();
        qDebug() << pluginsDir.absoluteFilePath(fileName) << plugin;
    
    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Set the QT_DEBUG_PLUGINS environment variable to 1 before running your application. You'll get some clues about what is happening.

      You can to that in the Run part of the Project panel.

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

      A 1 Reply Last reply
      1
      • SGaistS SGaist

        Hi,

        Set the QT_DEBUG_PLUGINS environment variable to 1 before running your application. You'll get some clues about what is happening.

        You can to that in the Run part of the Project panel.

        A Offline
        A Offline
        aliks-os
        wrote on last edited by
        #3

        @SGaist
        hehe, I forgot place third party DLL in the bin folder (release) - there were in it for debug mode. Issue is closed, thank you

        1 Reply Last reply
        1

        • Login

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