Solved double click in tablewidget is working only on 1st column
-
i made a qtablewidget list with 3 column
problem is item click is working when i double clicked in first column .
it is not a custom qtablewidget. -
@saber
Its because u usedindex
of first column ? -
Hi
as @Ratzz says, you used the value 1 as fixed value in the
item(item->row,1)
so even if it sends signal correctly, you might grab the wrong data. -
@mrjj so what should i do toget the first column data with selecting row?
-
@saber
You mean the item given is not the one u want ?
You want the clicked items text and the text from first col?Anyway, there is also
http://doc.qt.io/qt-5/qtablewidgetitem.html#column
(just like row)Anyway, maybe in your case all you need is 0 (zero) and not 1.