dopamlm.blogg.se

How to fix qt platform plugin windows 10
How to fix qt platform plugin windows 10





  1. #How to fix qt platform plugin windows 10 .dll#
  2. #How to fix qt platform plugin windows 10 code#
  3. #How to fix qt platform plugin windows 10 windows 7#

The first, if it is a program that you did with Qt. I had the same problem and solved it by applying several things.

how to fix qt platform plugin windows 10

I added the above line to the main method before the QApplication call like this: int main( int argc, char *argv )

#How to fix qt platform plugin windows 10 code#

To get around this, I added the following line of code to the application which seems to force it to look next to the exe for the 'platforms' subfolder before it looks at the path in the Qt5Core.dll. When I ran an exe deployed by him, it would use my C:\Qt\Qt5.6.0\5.6\msvc2015\plugins\platforms\qwindows.dll file instead of the one located next to the executable in the. Since my colleague's and my Qt directories were the same, but different version of Qt were installed, a different qwindows.dll file is needed. I learned from this post:, that the Qt5Core.dll has a location to the plugins written to it when Qt is first installed. I have Qt (5.6.2) installed in the same location. My colleauge has Qt (5.6.0) installed on his machine at: I ran into this and none of the answers I could find fixed it for me. There is likely a deployment console app for each OS. The application for windows is called windeployqt. This is the intended way to deploy your application, so you do not miss any libraries (which is the main issue with all of these answers). Qt comes with platform console applications that will add all dependencies (including ones like qwindows.dll and libEGL.dll) into the folder of your deployed executable. Be sure to copy your the qwindows.dll from the same compiler as the one used to release your app.

#How to fix qt platform plugin windows 10 .dll#

dll was taken from the wrong compiler bin. It seems like a common issue is that the. dll is not there check plugins/platforms/ ( with plugins/ being in the same directory as bin/ ) <- PfunnyGuy's comment. Copy and paste the qwindows.dll, found in the /bin of whichever compiler you used to release your application, into the "platforms" folder. see last paragraph for explanationĬreate a folder named "platforms" in the same directory as your application.exe file. The release is likely missing a library/plugin or the library is in the wrong directory and or from the wrong directory. Qt is still not finding the "platform plugin windows", where is my mistake? Does not matter if I rename it to "platform" as some other users did. Platforms is the folder directly copied from Qt\Qt5.1.1\5.1.1\msvc2012\plugins\platforms including e.g. Available platform plugins are:įolder structure looks like this: release This application failed to start because it could not find or load the However, when starting from the "release"-Folder, i get the following message: Application is compiled in "Release"-mode and can be executed if directly started with Qt Creator.

#How to fix qt platform plugin windows 10 windows 7#

I am using Qt 5.1.1 with Visual Studio 2012 and developed my Application on Windows 7 with Qt Creator 2.8.1. However, in my case the problem still persists. Available platforms are : Errorĭeploying Qt C++ Application from Visual Studio qwindows.dll errorįailed to load platform plugin "windows" Available platforms are: windows, minimal By the way: The accepted answer within the provided link on top does not solve the problem!įailed to load platform plugin "windows".

how to fix qt platform plugin windows 10

Therefore my question is definitely not a duplicate. This should not be forgotten and so far my answer helped a lot of people. However, when I answered this question by msyself I intended to help other people by directly providing the solution.

how to fix qt platform plugin windows 10

Now, many months later, the comment has been changed to an answer. After a long search I found a comment which had been ignored by all users pointing to the missing lib. However, none of these answers solved my problem. Do not forget that many similar questions existed when I asked this one (see e.g. Some people started to mark my question as a duplicate.







How to fix qt platform plugin windows 10