lqt icon indicating copy to clipboard operation
lqt copied to clipboard

QAbstractItemView:setSelection() method not implemented

Open ghost opened this issue 12 years ago • 0 comments

void QAbstractItemView::setSelection ( const QRect & rect, QItemSelectionModel::SelectionFlags flags ) [pure virtual protected] Applies the selection flags to the items in or touched by the rectangle, rect.

When implementing your own itemview setSelection should call selectionModel()->select(selection, flags) where selection is either an empty QModelIndex or a QItemSelection that contains all items that are contained in rect.

ghost avatar Apr 30 '12 19:04 ghost