Signature of StandardItemModel.headerData()
Phil Thompson
phil at riverbankcomputing.com
Mon Feb 6 09:48:22 GMT 2023
On 06/02/2023 02:16, Stephen Waterbury wrote:
> 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?
No.
Please provide a short working example that demonstrates the problem.
Phil
More information about the PyQt
mailing list