<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p><font face="Helvetica, Arial, sans-serif">According to the C++
documentation</font></p>
<p><a moz-do-not-send="true"
href="https://doc.qt.io/archives/qt-5.12/qstandarditemmodel.html#headerData"
class="moz-txt-link-freetext">https://doc.qt.io/archives/qt-5.12/qstandarditemmodel.html#headerData</a></p>
<p>... it takes 2 positional args (section, orientation) and 1
keyword arg<br>
(role). If I call it with the 2 positional args, I get a
traceback saying<br>
</p>
<p><span style="font-family:monospace"><span
style="color:#000000;background-color:#ffffff;">TypeError:
headerData() missing 1 required positional argument: 'role'</span></span></p>
<p>Did pyqt define the 'role' arg as positional? And if so, why?</p>
<p>Steve</p>
<p><span style="font-family:monospace"><br>
</span></p>
</body>
</html>