[Qt-interest] QTableView heading clicked
Marius Roets
roets.marius at gmail.com
Tue Sep 21 06:33:38 CEST 2010
On Mon, Sep 20, 2010 at 3:50 PM, <nora at sappho-net.de> wrote:
> Am 20. September 2010 um 15:07:21 +0200 schrieb Marius Roets:
>
> > How do I catch and re-implement the event of the header row being clicked
> in
> > a QTableView. The QTableView clicked() signal is only triggered when
> > clicking on data cells.
>
> I've the following:
>
> // QTableView *tbl;
> // QHeaderView *hhdr;
> ....
> hhdr = tbl->horizontalHeader ();
> ....
> connect (hhdr, SIGNAL (sectionClicked (int)), this, SLOT (hdrClicked
> (int)));
> ....
>
> Hope, this helps.
>
>
Perfect, thanks.
Marius
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100921/49b303cb/attachment.html
More information about the Qt-interest-old
mailing list