What Is the Use of Various Qt Platform Plugins

QT platform plugin windows

I found the Problem!

Previously i used the dll's from my old QT installation. I just copied the ones from the new Installtion into a folder and the exe. I don't even need the qwindow.dll now.
BUT! I works now... :)

Is there a way, that I create my own DLL, just for my Application?

But still thanks for your help!

pycharm has no Qt platform plugin could be initialized error when using matplotlib

Found out that I have to put the PyQt5's lib path into my PATH environment variable like below:

First, go open the 'Edit Environment Variables for your account' dialog

Then, add the following 3 entries on TOP of the path list:

C:\Users\My.Name\AppData\Local\Programs\Python\Python39\Lib\site-packages\PyQt5\Qt5\bin
C:\Users\My.Name\AppData\Local\Programs\Python\Python39\Lib\site-packages\PyQt5\Qt5\plugins
C:\Users\My.Name\AppData\Local\Programs\Python\Python39\Lib\site-packages\PyQt5\Qt5\plugins\platforms

Also, if you have a variable named: QT_PLUGIN_PATH, you want to put this line at the TOP of the list:

C:\Users\My.Name\AppData\Local\Programs\Python\Python39\Lib\site-packages\PyQt5\Qt5\plugins

After saving your environment variables, you need to restart PyCharm to have it "find" these libraries.

Well, this got me past this no Qt platform error in this case. But I have other python-qt programs that needs other python versions/install path, this will break those programs. I have found that pyqt programs usually have this problem, I still think (and sincerely hope) there is better approach than to mess with the PATH environment. I am still open to other suggestions of course.

How can I make my Qt app see the platforms in a different place?

Set Plugins in qt.conf to point to the location of all the plugin sub-directories (ie .. in your example), rather than listing individual plugin sub-directories.



Related Topics



Leave a reply



Submit