[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyQt] pyqt4 4.11.3 with Qt4.8.6, QTableView, header click, sorting
From:       MM <finjulhich () gmail ! com>
Date:       2015-07-25 23:52:21
Message-ID: CADsB1iCdY7oDNgTdOzNqTczfLNCCAbfEYaobkSKGvrC6GFf2VA () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


On 23 July 2015 at 20:12, MM <finjulhich@gmail.com> wrote:

> Hello,
>
> I am trying to use new style signal/slot to connect
> QTableView.horizontalHeader().sectionClicked signal to
> QTableView.sortByColumns
>
> this is the code:
>
> self.tableView.horizontalHeader().sectionClicked.\
>       connect(self.tableView.sortByColumn)
>
> The little triangle appears in the header columns when I click, by sorting
> does not happen.
> I did do:  self.tableView.setSortingEnabled(True) _before_.
>
> 1. Can I use new style connect with the versions I have?
> 2. If yes, how can I express the section number, the int argument, to be
> passed from sectionClicked to sortByColumn.
>
> MM
>

Is it advised to use newer versions of PyQt?

[Attachment #5 (text/html)]

<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 23 July 2015 at \
20:12, MM <span dir="ltr">&lt;<a href="mailto:finjulhich@gmail.com" \
target="_blank">finjulhich@gmail.com</a>&gt;</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>


[Attachment #6 (text/plain)]

_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic