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.qpa.plugin: Could not find the Qt platform plugin "windows" in ""

qt.qpa.plugin: Could not find the Qt platform plugin "windows" in ""

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

    I am getting the error:

    qt.qpa.plugin: Could not find the Qt platform plugin "windows" in ""
    

    when trying to run my application. It is failing to find the plugin, and as you'll notice, the empty string says its not really even looking anywhere. I have tried to resolve this by using:

    QCoreApplication::addLibraryPath(pluginLocation.c_str());
    

    to explicitly add the plugin path and as you'll note from the screenshot, when I output the QCoreApplication::libraryPaths, it returns the correct location, however it appears qt is just ignoring that path.
    b8de23e1-a97b-438f-8daa-5c63d21548f0-image.png

    Ive also tried setting QT_QPA_PLATFORM_PLUGIN_PATH and got the same result. Seems like its just ignoring all this.

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

      Hi,

      Are you doing that from the command line ?
      If so, did you run windeployqt before trying to start your application ?

      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