<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On 7 Feb 2021, at 10:16, Colin McPhail <<a href="mailto:colin.mcphail@mac.com" class="">colin.mcphail@mac.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html; charset=us-ascii" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><br class=""><div class=""><br class=""></div><div class="">I believe that in class TableModel instead of calling the inherited setHeaderData() method you must provide your own implementation of it. Perhaps something like</div><div class=""><br class=""></div><div class=""><div class=""><font face="Courier New" class=""><span style="font-style: normal;" class="">    def headerData(self, section, orientation, role):</span></font></div><div class=""><font face="Courier New" class=""><span style="font-style: normal;" class="">        if orientation == Qt.Vertical:</span></font></div><div class=""><font face="Courier New" class=""><span style="font-style: normal;" class="">            return None</span></font></div><div class=""><font face="Courier New" class=""><span style="font-style: normal;" class="">        elif role == Qt.DisplayRole:</span></font></div><div class=""><font face="Courier New" class=""><span style="font-style: normal;" class="">            return "Column " + str(section)</span></font></div><div class=""><font face="Courier New" class=""><span style="font-style: normal;" class="">        else:</span></font></div><div class=""><font face="Courier New" class=""><span style="font-style: normal;" class="">            return None</span></font></div><div class=""><br class=""></div></div></div></div></blockquote>Oops, please disregard my previous reply. I should have read your question more closely.</div><div>Sorry.</div><br class=""></body></html>