Signature of StandardItemModel.headerData()
Stephen Waterbury
waterbug at pangalactic.us
Mon Feb 6 02:16:50 GMT 2023
According to the C++ documentation
https://doc.qt.io/archives/qt-5.12/qstandarditemmodel.html#headerData
... it takes 2 positional args (section, orientation) and 1 keyword arg
(role). If I call it with the 2 positional args, I get a traceback saying
TypeError: headerData() missing 1 required positional argument: 'role'
Did pyqt define the 'role' arg as positional? And if so, why?
Steve
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20230205/6c610fcc/attachment.htm>
More information about the PyQt
mailing list