[Qt-interest] How to disable vertical header items in QTableWidget ?
Stephen Collyer
scollyer at netspinner.co.uk
Fri May 14 15:39:53 CEST 2010
On 14 May 2010 12:46, J-P Nurmi <jpnurmi at gmail.com> wrote:
> On Fri, May 14, 2010 at 2:05 PM, Stephen Collyer
> <scollyer at netspinner.co.uk> wrote:
> > I have a QTableWidget with its default numerically labelled vertical
> header
> > items.
> > I wish to ensure that these don't participate in the selection behaviour
> > that I have
> > set for the widget (which is QAbstractItemView::SelectRows)
>
> Perhaps making it non-clickable helps:
> - QTableView::verticalHeader()
> - QHeaderView::setClickable(bool)
>
> Thanks. That's a better solution than I was trying to achieve anyway.
--
Stephen Collyer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100514/d3491746/attachment.html
More information about the Qt-interest-old
mailing list