QTableWidgetItem.ItemType broken

Kovid Goyal kovid at kovidgoyal.net
Tue Jan 4 11:13:28 GMT 2022


python -c 'from PyQt6.QtWidgets import QTableWidgetItem; QTableWidgetItem("a", QTableWidgetItem.ItemType.UserType)'                      
Traceback (most recent call last):
  File "<string>", line 1, in <module>
TypeError: arguments did not match any overloaded call:
  QTableWidgetItem(type: int = QTableWidgetItem.Type): argument 1 has unexpected type 'str'
  QTableWidgetItem(str, type: int = QTableWidgetItem.Type): argument 2 has unexpected type 'ItemType'
  QTableWidgetItem(QIcon, str, type: int = QTableWidgetItem.Type): argument 1 has unexpected type 'str'
  QTableWidgetItem(QTableWidgetItem): argument 1 has unexpected type 'str'

-- 
_____________________________________

Dr. Kovid Goyal 
https://www.kovidgoyal.net
https://calibre-ebook.com
_____________________________________


More information about the PyQt mailing list