Important: Please read the Qt Code of Conduct -

Platform "windows" not found...

  • Hi,
    i have compiled Qt 5.0.2 with Visual Studio 2012 for x86 and with opengl.
    But there is a problem with the platforms/qwindows.dll. Creating a Qt Application works well,
    but when I start it, it tells me "Failed to load platform plugin 'windows'. Available platforms are:" (there are no platforms listed)
    When I keep the compiled QT version at the place where it was built into (in the visual studio program path), it works, but I think thats not the way it is meant to be.
    When I use the pre-compiled Version from the qt download page everything works well. So is there missing some thing to configure?
    Thanks a lot

  • Yesterday, I had the same problem with Visual Studio 2008. The solution was:

    Add the following lines to your application code:
    #include <QtPlugin>

    Link these libs to your application:

  • @danielesd said in Platform "windows" not found...:


    I was trying to follow these steps but, when I build workspace with Q_IMPORT_PLUGIN(QWindowsIntegrationPlugin) it says undefined reference to 'qt_static_plugin_QWindowsIntegrationPlugin()'

  • @danielesd In which place, file I should add Q_IMPORT_PLUGIN? I want to build Qt statically with bluetooth plugin.

Log in to reply