How to capture the index of a row?
-
Guys,
I'm beginning to study Qt, I'm using Qt5.1. I'm orienting following these tutorials:
http://www.codeprogress.com/cpp/libraries/qt/qtClasses.php?item=QTableWidget
Following the link below I'm able to select the entire row:
http://www.codeprogress.com/cpp/libraries/qt/QTableWidgetSelectRowBehavior.php#.UkLh2lNF1Fi
But in this tutorial:
the examples it shows only how to capture the index of a table header but would like to show the index of the line. How can I do this?
In the example he uses:
@setClickable(true);@
But now changed to:
@setSectionsClickable(true);@
I know the sample is old version but I believe that has changed only a few commands, am I correct?
And I'm sorry for my english!
-
Hi!
Did you take a look at documentation?
"Here":http://qt-project.org/doc/qt-5.0/qtwidgets/qtablewidget.html#signals is a list of all signals emited by QTableWidget. I believe you're searching for cellClicked signal.Regards,
Jake