QTableWidgetItem.ItemType broken
Phil Thompson
phil at riverbankcomputing.com
Tue Jan 4 11:44:49 GMT 2022
On 04/01/2022 11:13, Kovid Goyal wrote:
> 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'
Should be fixed in the next snapshot.
Thanks,
Phil
More information about the PyQt
mailing list