[Qt-interest] how can I get the event when the user click over the column name from QTableView
Arnold Krille
arnold at arnoldarts.de
Thu Jul 30 16:20:52 CEST 2009
On Thursday 30 July 2009 16:11:34 Mhayk Whandson wrote:
> I would like to get the column number, are you know how can I do this
> after receive the clicked over the column name from QTableView ?
> On Thu, Jul 30, 2009 at 9:56 AM, Michael Leupold<lemma at confuego.org> wrote:
> > Use the QTableView::horizontalHeader() and connect to its
> > sectionClicked(int) signal.
Hello Mhayk, did you even read Michaels answer?
The signal is "sectionClicked( int )" and no, the int is _not_ just some
random number transmitted to your slot...
BTW: All that is explained perfectly in the api-docs.
Have fun,
Arnold
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090730/a8e4bab9/attachment.bin
More information about the Qt-interest-old
mailing list