This application failed to start because no qt platform plugin could be initialized
Перейти к содержимому

This application failed to start because no qt platform plugin could be initialized

  • автор:

Application No Qt Platform Plugin Could Be Initialized? [Fixed]

When launching certain apps on Windows, many users receive the “This application failed to start because no Qt platform plugin could be initialized” error. Don’t worry. This post of MiniTool explores several effective troubleshooting methods.

This Application Failed To Start Because No Qt Platform Plugin Could Be Initialized

According to user reports, the “this application failed to start because no Qt platform plugin could be initialized” error can occur with many apps such as OneDrive, Designer, Python, etc. This error often appears after installing a series of Windows updates. Here’s a true example from the answersmicrosoft.com forum:

After a series of recent Windows updates my Surface displays the following error when we log in OneDrive – This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem. I have searched the community and followed the responses given to others suffering the same fate but so far this has not resolved the issue. Looking to know what I should attempt next? https://answers.microsoft.com/en-us/windows/forum/all/application-failed-to-start-because-no-qt-platform/205e4259-dcbc-4d72-addb-8e7edb9663e9

no Qt platform plugin could be initialized

Qt is a cross-platform software that was designed to create graphical user interfaces and cross-platform applications on Windows, Linux, macOS, and Android. However, when something went wrong with the Qt platform, you may receive the “This application failed to start because it could not find or load the Qt platform plugin Windows” error.

It seems like reinstalling the application may fix the error. However, some users encounter new errors when reinstalling the app. Don’t worry. Here we explore several effective troubleshooting methods. Let’s try.

How to Fix the “No Qt Platform Plugin Could Be Initialized” Error

After analyzing extensive user reports, we summarize the 6 applicable ways to fix the Qt platform plugin Windows error. You can try them in order until the error gets solved or choose the ones that work best for you.

Fix 1. Replace the Qt Files in the Destination

The first and proven method is to replace the Qt files in the destination folder. Here we take Python for example. To do so, follow the steps below:

Step 1. Press the Win + E keys to open the File Explorer, select This PC, type pyqt5_tools in the search box, and hit Enter.

Step 2. Right-click the pyqt5_tools folder once the search is complete and select Open folder location.

Step 3. Then go to the folder path “PyQt5 > Qt > plugins”, and then open the Plugin folder, right-click the platforms folder, and select Copy.

Step 4. Go to the site-packages folder that you initially opened and go to pyqt5_tools > Qt > bin.

Step 5. Right-click any empty space inside the bin directory and select paste. Then confirm it when you see the “Replace the files in the destination” message.

open Qt5 tools folder

Now, you can relaunch the app and see if the “this application failed to start Qt platform Windows” message persists.

Fix 2. Perform a Clean Boot

One of the possible reasons for the “this application failed to start Qt platform Windows” error is third-party software conflicts. If you are not sure which app is causing the conflict, you can perform a clean boot (click on the Hyperlink to know the detailed steps). Once you find out the conflicting software, uninstall it and check if the error is fixed.

Fix 3. Check System File Corruption

Sometimes corrupted system files can trigger various errors and issues when running your apps such as the “no Qt platform plugin could be initialized” error. So, we recommend you run an SFC scan or DISM to check system files.

Step 1. Type cmd in the search box, and then right-click Command Prompt and select Run as administrator option.

Step 2. Type the sfc /scannow command in the elevated command prompt and hit Enter. After that, the SFC tool will scan and try to repair the corrupted system files automatically.

run an SFC scan

Step 3. If the SFC command was unable to repair corrupt system files, you can try running the following DISM commands:

  • DISM /Online /Cleanup-Image /CheckHealth
  • DISM /Online /Cleanup-Image /ScanHealth
  • DISM /Online /Cleanup-Image /RestoreHealth

Fix 4. Reinstall the App

As the error message hints, reinstalling the application may help fix the problem. However, many users cannot uninstall the app smoothly. Don’t worry. We summarize the following 3 applicable ways to reinstall the app. (Here we take reinstalling OneDrive for example)

Uninstall OneDrive via the Run box:

Step 1, Press Win + R keys to open the Run dialog box, and then type the following command in it and hit Enter. Here make sure you replace the OneDriveSetup.exe path with the actual location.

%userprofile%\AppData\Local\Microsoft\OneDrive\Update\OneDriveSetup.exe

reinstall OneDrive with the Run dialog box

Step 2. Once uninstalled, go through the installation steps and restart your computer and check if the error gets fixed. If it fails to uninstall the application, you can try the following 2 methods.

Uninstall OneDrive via CMD:

Step 1. Type cmd in the Run dialog box and press Ctrl + Shift + Enter keys to open the elevated Command Prompt window.

Step 2. Type the following command and hit Enter to uninstall the app. If you are running on a 32-bit system, replace SysWOW64 with System32. This will force uninstalling the app.

  • taskkill /f /im OneDrive.exe
  • %SystemRoot%\SysWOW64\OneDriveSetup.exe /uninstall

Uninstall OneDrive from Settings:

Step 1. Right-click the Start menu at the bottom left and select Apps and Features.

Step 2. Inside the Applications window, search for OneDrive by name and click the Uninstall button.

uinstall OneDrive

Step 3. Then follow the on-screen prompts to complete the uninstallation. After that, you can reinstall the app and check if the error disappears.

Fix 5. Download the Update.xml File of the App

Some users reported that the error can be fixed by downloading the update.xml file of the app. If you can’t reinstall OneDrive via the above method, try this solution. Click here to download the OneDriveSetup.exe file, and run it to install the latest version of OneDrive.

a user report from the Microsoft forum

Fix 6. Undo the Recent Changes

Many people reported that “This application failed to start because it could not find or load the Qt platform plugin Windows” error mainly occurs after installing a series of Windows updates. If this scenario applies to you, you can try performing a system restore or uninstalling these updates manually.

Step 1. Press the Win + I keys to open the Settings app, and then select Update & Security > View update history.

click View update history

Step 2. Click on Uninstall updates, and then right-click the most recent update and select Uninstall. Then follow the on-screen prompts to complete the uninstallation. Then repeat the same procedure to uninstall other Windows updates.

uninstall Windows updates

Classic Shell Needs to Configure Itself for the New OS? [Fixed]

Classic Shell Needs to Configure Itself for the New OS? [Fixed]

What is Classic Shell? How to fix the “Classic Shell needs to configure itself for the new operating system” error? Now, get the answers from this post.

  • facebook
  • twitter
  • linkedin
  • reddit

How to resolve «no Qt Platform Plugin could be initialized» for a Qt5 application?

This is the Error Dialog

I am working on a python application based on PyQt5. Everything was running good until I redo my PC and reinstall windows again because of some issue. I had copied my environment and after reinstalling Anaconda, I copied that environment again in env folder. Now the problem is that, when I run my code in PyCharm IDE, it displays and error dialog like this: I have tried multiple solutions such as: Solution 1: Change the QT Files Location Sometimes, a simple trick such as changing the QT files location is enough to get rid of the error. Here’s how you can do it:

  1. Launch File Explorer and open This PC.
  2. Using the Search field, search for pyqt5_tools.
  3. When Windows finishes the search, right-click the pyqt5_tools and head to Open folder location.
  4. Head to PyQt5 > Qt > bin. Copy the platforms folder. in my case bin is not available in this folder
  5. Make a new search for site-packages and open the folder.
  6. There, paste the platforms folder.
  7. Windows will warn you there’s already a folder with the same name. Click Replace the files in the destination.

Solution 2: Run an SFC Scan

There’s a chance Windows display the “Application failed because no QT platform plugin could be initialized” error due to corrupt system files. Fortunately, Windows has a built-in tool to help you fix the problem.

In the Start menu search bar, search for command prompt and select Run as administrator. Then, run the sfc /scannow command line. Windows will scan and automatically replace any corrupted system file.

Nothing worked for me, I’m getting the same error all the time. How can I resolve the error displayed in the figure above?

Any help will be appreciated, Thanks.

Не решенные No Qt Platform Plugin Could Be Initialized — no qwindows.dll in Qt build directory?

Hello,
I have been working on porting an application from Qt 4 to Qt 5.15.5. I got to the point where my application source code builds with qmake and compiles, however, when attempting to launch the executable, I get the following error: »
Program: C:\Code\\bin\Win64.NET2015\QtCored.dll
Module: 5.15.5
File: C:\Qt\\qtbase\src\gui\kernel\qguiapplication.cpp
Line: 1254 This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem. Available platform plugins are: minimal, offscreen, webgl.
» When building Qt5.15.5, I followed the instructions described here for obtaining the source, configuring, and building.
My build is targeted for win32-msvc and I only deviated from the suggested configure command to add the —opengl desktop option. I have copied all of the Qt5 dll’s from C:\Qt\\qtbase\bin\ into C:\Code\\bin\Win64.NET2015\ (just to be safe, although I should only require a subset of them), as well as copying over the . \qtbase\plugins\platforms directory. That platforms directory contains dll/lib/etc. files for qminimal, qoffscreen, and qwebgl. After doing some digging online, I tried running windeployqt.exe like so:
windeployqt —debug —pdb —no-quick-import —no-angle —no-webkit2
and am again met with the message «Unable to find the platform plugin.» after it displays the dependencies it found to be deployed (concurrent, core, gui, network, script, svg, widgets, xml) Some more digging online seems to suggest I may need the qwindows.dll from the qtbase\plugins\platforms directory, but no such file exists in my Qt build. Is this because I configured/built Qt incorrectly in some way? Is there something else going on here?

SGaist Lifetime Qt Champion отредактировано

Hi and welcome to devnet, Before using a custom build I would start with the latest pre-built release so you have a known working starting point. Next, retry with your self built Qt. That said, can you share the configure line you used ?

Christian Ehrlicher

Christian Ehrlicher Lifetime Qt Champion @JW16 отредактировано

I have copied all of the Qt5 dll’s from C:\Qt\qtbase\bin\ into C:\Code\bin\Win64.NET2015\ (just to be safe, although I should only require a subset of them), as well as copying over the . \qtbase\plugins\platforms directory. That platforms directory contains dll/lib/etc. files for qminimal, qoffscreen, and qwebgl.

This is wrong. Put your Qt dlls in your PATH or properly deploy the Qt dlls to your executable folder via windeployqt which also copies the plugins to the correct directory (to / as described here, second paragraph).

JW16 @Christian Ehrlicher отредактировано

@Christian-Ehrlicher Ok. If I delete the platforms dir and all of the Qt5 dll’s from my executable, then run:
windeployqt —debug —pdb —no-quick-import —no-angle —no-webkit2 from \qtbase\bin, targeted at my executable folder, I again get «Unable to find the platform plugin.» message after it lists my dependencies, and nothing happens (nothing is copied). With the Qt dll’s from my Qt build dir in my path, I get the exact same error message as in my original post when trying to launch my executable. Do you have any other suggestions?

Christian Ehrlicher

Christian Ehrlicher Lifetime Qt Champion отредактировано

Did you compile Qt but did not install it afterwards? What does qmake -query tells you where it expects it’s dlls. Then make sure there are no other Qt5 dlls in your PATH and maybe use a pre-build binary Qt distribution as @SGaist suggested. Then you can also use the latest Qt6 version — if it compiles with Qt5.15 without any deprecation warnings it will most likely also compile with the latrst Qt6 version.

JW16 @SGaist отредактировано

@SGaist Where can I download the prebuilt release of 5.15.5? I only saw links to the git repo and a zip package of the source when I looked. I believe my configure line was configure -developer-build -opensource -nomake examples -nomake tests -opengl desktop -confirm-license

Не решенные No Qt platform plugin could be initialized

Installed Qt 5.12 using Qt installer. QtCreator will not start. Error «Application failed to start — No qt platform plugin could be initialized». Searched Google and this form for the answer. Found lots of users with the same problem in the forum with the same problem but, no real fixes. The same problem occurs with QT6. There QtCreator, QtDesiner etc. do not start. All replies are appreciated. Thanks

SGaist Lifetime Qt Champion отредактировано
Hi, Which Linux distribution are you using ?
Which desktop environment ?
ham13 отредактировано
Just logged in to add info about the OS witch I forgot to add. The os is Windows 10. Thanks
ham13 отредактировано

No suggestions or ideas? Somebody must have fixed this problem before. Right now I’m dead in the water with Qt 6 and Qt5. Help! Thanks

mzimmers

mzimmers отредактировано
How did you install Qt and Creator?
DragoonXVIII @ham13 отредактировано

@ham13 I had the same problem a couple of times, Windows too, installed by an online installer. I reinstalled it twice, created 2-3 new projects and suddenly it worked again (not for so long). I have no idea why this problem occurs but before i got this problem, Qt replied with info about missing .dll, and when i manually added them plugin error appeard. And well, this morning got same problem again :/

hskoglund отредактировано

Hi, just a guess but perhaps your Microsoft OneDrive is acting up? Try updating it.
(Parts of Microsoft OneDrive is built with Qt and sometimes it puts itself in the PATH thus disturbing other Qt apps.)

ham13 отредактировано

Thank you all for your responses! I installed Qt and QtCreator using the Qt installer I downloaded from the Qt site. Installed both Qt5 and Qt6 separately
after removing the previous version. I used the maintenance tool to remove the previous versions before installing the next. Both Qt5 and Qt6 gave the same error. The net talks about moving .dll files but the info is old and the directories are not the same in current versions. My OneDrive has been down but, I’ll try to update it. MS did something to it so that it stopped working on Windows 10. Thanks

ham13 отредактировано

Regarding MS OneDrive. My PC originally had MSW 8.1 installed when I purchased it. Since then we did the «free» upgrade to Windows 10 and have kept up-to-date on the updates. Now the PC its running Windows 10 but the «System page» still show 8.1. The problem is that the OneDrive app came on the PC. Now to use it I have to upgrade Windows. Well since the OS is Windows 10 there are no updates available and the new OneDrive will not install because «update» thinks it is Win8.1. UGG!
I may just unistall it. Looked at all the paths in the environment. None contain any reference to OneDrive or Qt. Is there a path to Qt I should add? If so what should I add to the path? Thanks

hskoglund отредактировано

Well I think then OneDrive is not blame for your Qt failing.
So perhaps start at square 1, open a CMD window and type
set QT_DEBUG_PLUGINS=1
then start Qt Creator from that same CMD window, say like this:
C:\Qt\Tools\QtCreator\bin\qtcreator.exe
(or wherever your Qt Creator is located) To see the debug oiutput you need to download DbgView from here
Note: start DbgView before starting Qt Creator 🙂
Then post say the last 100 lines or so of the output here (i.e. where it fails)

JonB

JonB @ham13 отредактировано

Regarding MS OneDrive

Don’t rely on me for this, because I would not want you to lose access to any data because I am not correct. But it sounds like you are running some old Win8 OneDrive app on your newer OS. There should be a OneDrive app or just inbuilt support in the newer one. What matters is not which app you use to access OneDrive but just your login so that you can access your data; the client app (so long as it works) should not be relevant. But as I said I don’t want you to let me make you lose your data!

ham13 отредактировано

Regarding OneDrive. OneDrive will not run. It since it thinks the OS is win 8.1 it will not start unless I update windows. Windows update has no available updates as the OS is now Win 10. I downloaded the current OneDrive but it will not install. It tells me «You have an preinstalled app for this». Seems like catch 22. Should I copy the OneDrive offline files for BU the uninstall OneDrive using the programs/app from the control panel? I’ll post the output of the debugger later today. Thanks

JonB

JonB @ham13 отредактировано

I downloaded the current OneDrive but it will not install. It tells me «You have an preinstalled app for this».

I have no idea. Maybe you are supposed to uninstall the existing one first. You should not need to use some Win8 OneDrive client under Win10. But like I said, I am not making any promises, only assumptions.

Should I copy the OneDrive offline files for BU the uninstall OneDrive using the programs/app from the control panel?

If you have the space somewhere it might be a sensible precaution 🙂
ham13 отредактировано

Ok on OneDrive. Will BU files the delete them from OneDrive. The results of the debug are below. 00000001 0.00000000 [12004] 12840 0000000000000000 ENTER: DllCanUnloadNow
00000002 22.68410873 [12004] 6884 0000000000000000 ENTER: DllCanUnloadNow
00000003 104.30684662 [12004] 8832 0000000000000000 ENTER: DllCanUnloadNow
00000004 104.81434631 [12004] 10088 0000000000000000 ENTER: DllCanUnloadNow
00000005 111.02730560 [12004] 6884 0000000000000000 ENTER: DllCanUnloadNow
00000006 123.44914246 [5840] qt.core.plugin.factoryloader: checking directory path «C:/Qt5/Tools/QtCreator/bin/plugins/platforms» .
00000007 123.45053101 [5840] qt.core.plugin.factoryloader: looking at «C:/Qt5/Tools/QtCreator/bin/plugins/platforms/qdirect2d.dll»
00000008 123.46178436 [5840] qt.core.plugin.loader: Found metadata in lib C:/Qt5/Tools/QtCreator/bin/plugins/platforms/qdirect2d.dll, metadata=
00000009 123.46178436 [5840] <
00000010 123.46178436 [5840] «IID»: «org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3»,
00000011 123.46178436 [5840] «MetaData»: <
00000012 123.46178436 [5840] «Keys»: [
00000013 123.46178436 [5840] «direct2d»
00000014 123.46178436 [5840] ]
00000015 123.46178436 [5840] >,
00000016 123.46178436 [5840] «archlevel»: 0,
00000017 123.46178436 [5840] «className»: «QWindowsDirect2DIntegrationPlugin»,
00000018 123.46178436 [5840] «debug»: false,
00000019 123.46178436 [5840] «version»: 393984
00000020 123.46178436 [5840] >
00000021 123.46178436 [5840]
00000022 123.46178436 [5840]
00000023 123.47000885 [5840] qt.core.plugin.factoryloader: Got keys from plugin meta data QList(«direct2d»)
00000024 123.47006226 [5840] qt.core.plugin.factoryloader: looking at «C:/Qt5/Tools/QtCreator/bin/plugins/platforms/qminimal.dll»
00000025 123.47084045 [5840] qt.core.plugin.loader: Found metadata in lib C:/Qt5/Tools/QtCreator/bin/plugins/platforms/qminimal.dll, metadata=
00000026 123.47084045 [5840] <
00000027 123.47084045 [5840] «IID»: «org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3»,
00000028 123.47084045 [5840] «MetaData»: <
00000029 123.47084045 [5840] «Keys»: [
00000030 123.47084045 [5840] «minimal»
00000031 123.47084045 [5840] ]
00000032 123.47084045 [5840] >,
00000033 123.47084045 [5840] «archlevel»: 0,
00000034 123.47084045 [5840] «className»: «QMinimalIntegrationPlugin»,
00000035 123.47084045 [5840] «debug»: false,
00000036 123.47084045 [5840] «version»: 393984
00000037 123.47084045 [5840] >
00000038 123.47084045 [5840]
00000039 123.47084045 [5840]
00000040 123.47090912 [5840] qt.core.plugin.factoryloader: Got keys from plugin meta data QList(«minimal»)
00000041 123.47094727 [5840] qt.core.plugin.factoryloader: looking at «C:/Qt5/Tools/QtCreator/bin/plugins/platforms/qoffscreen.dll»
00000042 123.47157288 [5840] qt.core.plugin.loader: Found metadata in lib C:/Qt5/Tools/QtCreator/bin/plugins/platforms/qoffscreen.dll, metadata=
00000043 123.47157288 [5840] <
00000044 123.47157288 [5840] «IID»: «org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3»,
00000045 123.47157288 [5840] «MetaData»: <
00000046 123.47157288 [5840] «Keys»: [
00000047 123.47157288 [5840] «offscreen»
00000048 123.47157288 [5840] ]
00000049 123.47157288 [5840] >,
00000050 123.47157288 [5840] «archlevel»: 0,
00000051 123.47157288 [5840] «className»: «QOffscreenIntegrationPlugin»,
00000052 123.47157288 [5840] «debug»: false,
00000053 123.47157288 [5840] «version»: 393984
00000054 123.47157288 [5840] >
00000055 123.47157288 [5840]
00000056 123.47157288 [5840]
00000057 123.47167206 [5840] qt.core.plugin.factoryloader: Got keys from plugin meta data QList(«offscreen»)
00000058 123.47171783 [5840] qt.core.plugin.factoryloader: looking at «C:/Qt5/Tools/QtCreator/bin/plugins/platforms/qwindows.dll»
00000059 123.47232056 [5840] qt.core.plugin.loader: Found metadata in lib C:/Qt5/Tools/QtCreator/bin/plugins/platforms/qwindows.dll, metadata=
00000060 123.47232056 [5840] <
00000061 123.47232056 [5840] «IID»: «org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3»,
00000062 123.47232056 [5840] «MetaData»: <
00000063 123.47232056 [5840] «Keys»: [
00000064 123.47232056 [5840] «windows»
00000065 123.47232056 [5840] ]
00000066 123.47232056 [5840] >,
00000067 123.47232056 [5840] «archlevel»: 0,
00000068 123.47232056 [5840] «className»: «QWindowsIntegrationPlugin»,
00000069 123.47232056 [5840] «debug»: false,
00000070 123.47232056 [5840] «version»: 393984
00000071 123.47232056 [5840] >
00000072 123.47232056 [5840]
00000073 123.47232056 [5840]
00000074 123.47239685 [5840] qt.core.plugin.factoryloader: Got keys from plugin meta data QList(«windows»)
00000075 123.47244263 [5840] qt.core.plugin.factoryloader: checking directory path «C:/Qt5/Tools/QtCreator/bin/platforms» .
00000076 123.56985474 [5840] qt.core.library: «C:/Qt5/Tools/QtCreator/bin/plugins/platforms/qwindows.dll» cannot load: Cannot load library C:\Qt5\Tools\QtCreator\bin\plugins\platforms\qwindows.dll: The specified procedure could not be found.
00000077 123.56987762 [5840] qt.core.plugin.loader: QLibraryPrivate::loadPlugin failed on «C:/Qt5/Tools/QtCreator/bin/plugins/platforms/qwindows.dll» : «Cannot load library C:\Qt5\Tools\QtCreator\bin\plugins\platforms\qwindows.dll: The specified procedure could not be found.»
00000078 123.56994629 [5840] qt.qpa.plugin: Could not load the Qt platform plugin «windows» in «» even though it was found.
00000079 128.48297119 [5840] This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
00000080 128.48297119 [5840]
00000081 128.48297119 [5840] Available platform plugins are: direct2d, minimal, offscreen, windows.
00000082 128.48297119 [5840]
00000083 186.36808777 [12004] 6968 0000000000000000 ENTER: DllCanUnloadNow
00000084 199.37474060 [12004] 6884 0000000000000000 ENTER: DllCanUnloadNow
00000085 287.71145630 [12004] 6884 0000000000000000 ENTER: DllCanUnloadNow
00000086 287.90173340 [12004] 3992 0000000000000000 ENTER: DllCanUnloadNow
00000087 297.08096313 [1660] ShellStreams: Attach
00000088 297.08258057 [1660] ShellStreams: Initialized
00000089 297.10009766 [1660] Trying to load localized resources for LANGID 1033 with Primary LANGID 9 code en name English (Universal)
00000090 297.11761475 [1660] Resource DLL loaded at path C:\Program Files (x86)\Common Files\Apple\Internet Services\ShellStreams.resources\en.lproj\ShellStreamsLocalized.dll
00000091 297.13519287 [1660] Not running under explorer. Will not set thread locale
00000092 297.15405273 [1660] 13276 051E95F8 ENTER: ShellStreamsFolder::ShellStreamsFolder
00000093 297.17083740 [1660] pidl = 1f50e04fd020ea3a6910a2d8802b30309d140 -> 2e80853fd6f0ec379740b3d61b4a891711800 ->
00000094 297.18710327 [1660]
00000095 297.20248413 [1660] 13276 051E95F8 ENTER: ShellStreamsFolder::ShellStreamsFolder
00000096 297.21844482 [1660] pidl = 1f50e04fd020ea3a6910a2d8802b30309d140 -> 2e80853fd6f0ec379740b3d61b4a891711800 ->
00000097 297.23428345 [1660] Hope it helps. Thanks

hskoglund отредактировано hskoglund

Hi it’s complaining about the C:\Qt5\Tools\QtCreator\bin\plugins\platforms\qwindows.dll file, that it’s a not a valid .dll. Do you have any 3rd party antivirus program like Avast installed?
Also check the size and date of that file, mine looks like this:

C:\Qt\Tools\QtCreator\bin\plugins\platforms>dir qwindows.dll Volume in drive C has no label. Volume Serial Number is 2468-E241 Directory of C:\Qt\Tools\QtCreator\bin\plugins\platforms 2022-06-02 16:18 802 704 qwindows.dll 1 File(s) 802 704 bytes 0 Dir(s) 70 671 708 160 bytes free 

ham13 отредактировано

Mine reads: 06/02/2022 10:18 AM 802,704 qwindows.dll
1 File(s) 802,704 bytes
0 Dir(s) 273,429,200,896 bytes free C:\Qt5\Tools\QtCreator\bin\plugins\platforms> Properties:
6/2/22 — Version 6.3.1 Yes I’m running Trendmicro antivirus with Windows Defender. Thanks

JonB

JonB @ham13 отредактировано JonB

qt.core.plugin.loader: QLibraryPrivate::loadPlugin failed on "C:/Qt5/Tools/QtCreator/bin/plugins/platforms/qwindows.dll" : "Cannot load library C:\Qt5\Tools\QtCreator\bin\plugins\platforms\qwindows.dll: The specified procedure could not be found." 

It’s not actually complaining that it cannot load the DLL per se, it’s saying that it could not find the exported procedure it was asking for/expecting to find. Unfortunately we don’t know which procedure name. Not that it helps much solve why/what to do.

hskoglund отредактировано hskoglund

If you disable TrendMicro do you get the same error? Edit: forgot to say, it could be you’re missing some stuff from Microsoft that qwindows.dll needs to load ok, I’m thinking about the Visual C++ redistrubuable files (early versions of Windows 10 do not have them). Go here to install and choose the X64 flavor.

ham13 отредактировано

Same error with antivirus (TrendMicro) off or on. Installed Visual C++ redistributable 64 bit. No change. I get same error on both Qt6 and qt5. I have installedQt5 in \Qt5. Maybe I should have installed it in C:? Thanks

hskoglund отредактировано hskoglund

Hi, you could try launching Qt Creator without loading or requiring qwindows.dll, open a CMD window:
C:\Qt5\Tools\QtCreator\bin\qtcreator.exe -platform direct2d If that fails: the problem could be some detritus from previous Qt versions that still remains. One way to test that is if you create a new user on your PC, log out and log in as that new user. Then try start Qt Creator on that desktop (if there’s no icon to launch it you might have to navigate to the qtcreator.exe file manually). *Edit»: also a good test of Qt’s health is to run qtdiag.exe from a CMD window. (There’s usually 2 of them for a given Qt release, one in the mscv2019\bin subdirectory and one in Qt\Tools\QtCreator\bin so try running all 4 of them 🙂

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *