Qt设计器和PyQt5自定义插件加载类型e

2024-09-29 19:22:24 发布

您现在位置:Python中文网/ 问答频道 /正文

我在使用Qt设计器加载自定义PyQt5插件时遇到问题。在GitHub上可用的示例插件正在工作,我用它们来创建我自己的插件,它也在工作。然后昨天设计师停止了加载。从CLI启动Designer时,我得到:

TypeError: unwrapinstance() argument 1 must be sip.simplewrapper, not PyAnalogClockPlugin
TypeError: unwrapinstance() argument 1 must be sip.simplewrapper, not BubblesPlugin
TypeError: unwrapinstance() argument 1 must be sip.simplewrapper, not CounterLabelPlugin
TypeError: unwrapinstance() argument 1 must be sip.simplewrapper, not PyDateEditPlugin
TypeError: unwrapinstance() argument 1 must be sip.simplewrapper, not PyDateTimeEditPlugin
TypeError: unwrapinstance() argument 1 must be sip.simplewrapper, not HelloGLWidgetPlugin
TypeError: unwrapinstance() argument 1 must be sip.simplewrapper, not MultiPageWidgetPlugin
TypeError: unwrapinstance() argument 1 must be sip.simplewrapper, not PolygonWidgetPlugin
TypeError: unwrapinstance() argument 1 must be sip.simplewrapper, not PyDemoPlugin
TypeError: unwrapinstance() argument 1 must be sip.simplewrapper, not PythonConsolePlugin

我不知道从哪里开始,谷歌搜索这个问题也没用。我使用的是python3.6.6、qt5.11.1、PyQt5.11.2和linux4.17.5-1-ARCH。在

是什么导致了这个错误?我怎么修?在


Tags: github插件示例clinotbeargumentqt

热门问题