'PySide6.QtGui.QPixmap' object has no attribute 'pixelData'
时间: 2023-10-13 19:07:06 浏览: 207
在PySide6中,'PySide6.QtGui.QPixmap'对象没有'pixelData'属性。如果你遇到这个错误,可能是因为你正在尝试访问一个不存在的属性或方法。你可以检查一下你的代码,确认你正确地使用了'PySide6.QtGui.QPixmap'对象。如果你需要获取像素数据,你可以使用'PySide6.QtGui.QPixmap'的toImage()方法将其转换为'PySide6.QtGui.QImage'对象,然后使用QImage对象的pixel方法来访问像素数据。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [‘PySide6.QtWidgets.QApplication‘ object has no attribute ‘desktop](https://blog.csdn.net/dgxl22/article/details/121725550)[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%"]
- *3* [Pyside.GUI.Application.Development.2nd.Edition.178528](https://download.csdn.net/download/ramissue/9439248)[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 ]
阅读全文