View Full Version : how can we select or highlight multiple rows from a current selected row
Joseph Babu
4th April 2016, 10:42
I need to get code/ tip to select or highlight multiple rows in a table from a currently selected/highlighted row. Could someone help me on this?
anda_skoa
4th April 2016, 11:31
Check the QItemSelectionModel of the view.
Cheers,
_
Joseph Babu
5th April 2016, 08:08
Could you please explain with an example. I don't have any idea about this
Regards,
Joseph
anda_skoa
5th April 2016, 09:23
Ah, it probably wasn't that obvious, but the QItemSelectionModel in the previous comment is actually a link to the Qt documentation for that class.
Which contains a link to the Qt model/View documentation, which has this section: http://doc.qt.io/qt-5/model-view-programming.html#handling-selections-in-item-views
Cheers,
_
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.