[Qt-interest] How to disable vertical header items in QTableWidget ?
J-P Nurmi
jpnurmi at gmail.com
Fri May 14 13:46:31 CEST 2010
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).
>
> I've tried to set the QTableWidgetItem flags for the vertical header in the
> ctor, but
> I'm getting core dumps (in a Linux build) when I do so.
>
> Can someone suggest when/how I can safely access these items ?
>
> --
> Stephen Collyer
>
Perhaps making it non-clickable helps:
- QTableView::verticalHeader()
- QHeaderView::setClickable(bool)
--
J-P Nurmi
More information about the Qt-interest-old
mailing list