<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 23 July 2015 at 20:12, MM <span dir="ltr"><<a href="mailto:finjulhich@gmail.com" target="_blank">finjulhich@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello,<div><br>I am trying to use new style signal/slot to connect </div><div>QTableView.horizontalHeader().sectionClicked signal to </div><div>QTableView.sortByColumns</div><div><br></div><div>this is the code:</div><div><br></div><div><div>self.tableView.horizontalHeader().sectionClicked.\</div><div>      connect(self.tableView.sortByColumn)</div></div><div><br></div><div>The little triangle appears in the header columns when I click, by sorting does not happen.</div><div>I did do:  self.tableView.setSortingEnabled(True) _before_.</div><div><br></div><div>1. Can I use new style connect with the versions I have?</div><div>2. If yes, how can I express the section number, the int argument, to be passed from sectionClicked to sortByColumn.</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>MM</div></font></span></div></blockquote><div><br></div><div>Is it advised to use newer versions of PyQt? </div></div><br></div></div>