취미삼아 배우는 프로그래밍

PySide / Pyqt qpa_plugin error solved(Or not working QApplication) 본문

파이썬

PySide / Pyqt qpa_plugin error solved(Or not working QApplication)

Nadure 2022. 3. 21. 20:50

if error occurs,

env = os.environ
env.setdefault("QT_DEBUG_PLUGINS","1")
env.setdefault("QT_PLUGIN_PATH", os.getcwd())

set environment variable QT_DEBUG_PLUGINS to True and check the displayed error message.

if error occurs when calling dll in platforms folder, it is the error for QT_PLUGINS. so set the folder and copy the file to current script folder and running it would be clearly solved the errors.

 

Comments