Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Cannot run executable



  • Hi,

    I am trying to run my application but I get this error :

    This application failed to start because it could not find or load the Qt platform plugin "windows" in "". Reinstalling the application may fix this problem.

    I have in my app folder the following structure :

    • app.exe
    • plugins
      • platforms
        • qminimald.dll
        • qoffscreend.dll
        • qwindowsd.dll
      • styles
        • qwindowsvistastyled.dll

    I then run Dependency Walker and get this :

    0_1551974636398_Capture.PNG

    It looks like my application cannot find all the windows DLLs. But I don't know how to fix it. Any idea ?

    EDIT : I am running it on Windows 10 with Qt 5.10.1

    Thanks & Regards


  • Lifetime Qt Champion

    The plugins directory is wrong - see https://doc.qt.io/qt-5/windows-deployment.html#qt-plugins :

    All Qt GUI applications require a plugin that implements the Qt Platform Abstraction (QPA) layer in Qt 5. For Windows, the name of the platform plugin is qwindows.dll. This file must be located within a specific subdirectory (by default, platforms) under your distribution directory. Alternatively, it is possible to adjust the search path Qt uses to find its plugins, as described below.

    And I would suggest you using windeployqt instead trying to copy all needed Qt dlls by yourself (which, obviously doesn't work very well).


Log in to reply