-
Qtableviews question
Hello,
I have a Qtableview that's 10 rows, ten columns. I am selecting by rows. How can I have a button that prints out the value of a cell from the row I'm selecting, in a specific column? I know that for a qtablewidget it's something like model.item(), but it doesn't work with Qtableview.
Any advice?
-
Re: Qtableviews question
Hi, there's QAbstractItemView::model() that you can use to get the model, and then use the index() and data() function of the model to get the content of the desired cell.
Ginsengelf