文章目录
AttributeError: ‘PySide6.QtWidgets.QPushButton’ object has no attribute ‘setStyleSheet’
This application failed to start because no Qt platform plugin couldbe initialized. Reinstalling the application may fix this problem.
This application failed to start because no Qt platform plugin couldbe initialized. Reinstalling the application may fix this problem.
在环境变量中,新建用户变量
变量名:QT_QPA_PLATFORM_PLUGIN_PATH
变量值:D:\soft\Anaconda\Lib\site-packages\PySide2\plugins\platforms