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. Unable to find or load the Qt platform plugin "windows" in a DLL

Unable to find or load the Qt platform plugin "windows" in a DLL

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 3 Posters 6.0k 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.
  • E Offline
    E Offline
    Enrico
    wrote on last edited by Enrico
    #1

    Hi,
    I have created a communication dll, which is statically linked and I would like to have a systemtray icon.
    My Icon appears fine in debug mode, but when i have compiled in static release mode it complains about "Unable to find or load the platform plugin".
    I have tryed to link the platform plugin, but somehow it did'ent remove the issue.
    Any ideas on how to proceed

    Thanks
    Henrik

    1 Reply Last reply
    0
    • T Offline
      T Offline
      Thomas R. Krenn
      wrote on last edited by
      #2

      Hello Enrico,

      set QT_DEBUG_PLUGINS=1
      to debug the issue. (Use e.g. Dbgview.exe to display the debug output)

      Usually the problem is that the "platforms" folder isn ot on the same level as your application. (By default the "platforms" folder is in the plugins folder).

      Another solution is to set:
      set QT_QPA_PLATFORM_PLUGIN_PATH=.\plugins
      (Assuming that your plugins folder is in your application directory)

      Best regards
      Thomas

      1 Reply Last reply
      0
      • E Offline
        E Offline
        Enrico
        wrote on last edited by
        #3

        Thanks

        Not getting much closer, though. Thanks anyway :-)

        QFactoryLoader::QFactoryLoader() ignoring "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3" since plugins are disabled in static builds
        This application failed to start because it could not find or load the Qt platform plugin "windows".
        
        Reinstalling the application may fix this problem.
        
        1 Reply Last reply
        0
        • R Offline
          R Offline
          Rondog
          wrote on last edited by
          #4

          You might need to have the platform plugin folder in the same location as your application. Static linking alone doesn't change the plugin behavour.

          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