Qtablewidget make rows not selectable
Good morning,
i've a QTablewidget, 2 cols, 3 rows.
i use :
mytable->setSelectionBehavior(QAbstractItemView::SelectRow s); //to select a row
mytable->setSelectionMode(QAbstractItemView::SingleSelecti on); //to have single selection.
All well,
now i want to disable the onclick selection, when a row is empty, (so the row background color remains unchanged, and no empty row is porcessed)
How can i disable the oncick selection for a certain row ?
Thanks Gabriele
Re: Qtablewidget make rows not selectable
Code:
//On each item of the empty row you need to call
Re: Qtablewidget make rows not selectable
Thank you for your answer...it brings me in the right direction...
Unfortunately i use old QT 4.2.3 and this flag does not exist.
i use setFlags(Qt::ItemIsEditable)...this works and the line is not selectable..
but problems remains...the row is not selectable but the values is passed.
I've a button..and when i clicks..the value is passed even if the row seems to be unselectable...