I’m trying to use PyQt in Unreal.
This is my python code:
from PyQt5.QtWidgets import QApplication
app = QApplication([])
This crashes the editor with this window:
The UI text is:
This application failed to start because it could not find or load the Qt platform plugin “windows”.
Reinstalling the application may fix the problem.
This is what i have tried:
- Re-installing pyqt5. The version I have installed works fine. I can create all sorts of Qt GUIs using native Python.
- Swap to Qt4. Same result.
- Generating a QWidget without generating the QApp. This to attach the QWidget to Unreal (using this: unreal.parent_external_window_to_slate(YourWidget.winId()). As soon as i make the QWidget, Unreal crashes (with no window this time).
I’m pretty sure the .dll is incompatible.
Any suggestions on how to fix this?
Is this a case where i need to compile my own .dlls for Unreal?
According to the interwebs, Qt should work out of the box, right?
Please help?
Thank you!!