I wonder, as I select multiple cells in QTableWidget object across the line of code?
I know: setCurrentCell ();//but this function selects only a single cell, and I would like to select several cells.
Thank you very much !
I wonder, as I select multiple cells in QTableWidget object across the line of code?
I know: setCurrentCell ();//but this function selects only a single cell, and I would like to select several cells.
Thank you very much !
void QTableWidgetItem::setSelected ( bool select ) ?
Sets the selected state of the item to select.
This function was introduced in Qt 4.2.
At a guess or
void QTableWidget::setCurrentItem ( QTableWidgetItem * item )
Sets the current item to item.
Depending on the current selection mode, the item may also be selected.
See also currentItem() and setCurrentCell().
I'm a beginner too and don't think the documentation is very clear. Hope this helps.
See the second parameter or setCurrentItem(): QItemSelectionModel::SelectionFlags. There you could influence the behavior of the selection.
Thanks for help
Bookmarks