Important: Please read the Qt Code of Conduct -

Finding the platform plugins

  • If I could find the correct help page in the documentation that talks about installation and deployment, I think I could answer all my questions, but... some how I am missing it...

    It has been too long since I had to deal with the install of my Qt4 app and I am working on a new Qt5 application. I copied the EXE and a bunch of supporting DLL's to a Windows 7 virtual machine, then copied over the whole plugins folder to the same location. When I run the program, I get the error:

    This application failed to start because it could not find or load the Qt platform plugin "windows".

    There is no plugin folder called "windows" on the development machine or on the virtual machine. There is one called platforms, which I tried renaming to windows, but that doesn't do any good either. I also tried creating a batch file and setting the qtplugins to the plugin folder, that doesn't help, either.

    What am I missing?

  • Moderators


    The platform plugin DLL is [Qt]\plugins\platforms\qwindows.dll

    For the official deployment guide, see

    For a quick summary, see

  • hi,

    ok im used to using static builds of qt so this may or may not help you :)

    Add the follow lib path to your project:

    Add the following two libs to your projects lib dependencies
    or for debug

    then above your applications entry point (for example int main())
    #include <QtPlugin>
    Q_IMPORT_PLUGIN (QWindowsIntegrationPlugin);

    hope this is of some help

  • Is this " porting guide": useful to you ?

Log in to reply