AttributeError: 'PySide2.QtCore.Signal' object has no attribute 'connect'
时间: 2023-10-08 22:05:32 浏览: 260
AttributeError: 'PySide2.QtCore.Signal' object has no attribute 'connect'这个错误是因为PySide2.QtCore.Signal对象没有connect方法。这个错误通常发生在使用错误的对象或方法时。在这种情况下,可能是因为您尝试在PySide2中使用了PyQt5的connect方法。PySide2和PyQt5是两个不同的库,它们的API可能有所不同。如果您正在使用PySide2,请确保使用正确的方法来连接信号和槽。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [【Python】AttributeError: ‘PyQt5.QtCore.pyqtSignal‘ object has no attribute ‘connect](https://blog.csdn.net/weixin_42147967/article/details/125516309)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [Python运行时出现:AttributeError: ‘PySide2.QtWidgets.QWidget‘ object has no attribute ‘Button_...](https://blog.csdn.net/guangwulv/article/details/113884806)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文