Hi,

could someone explain why the following:

Qt Code:
  1. this->sectorsList = new QListWidget;
  2. this->sectorsList->setSortingEnabled(true);
  3. this->sectorsList->setSelectionMode(QAbstractItemView::ExtendedSelection);
  4. this->sectorsList->setSelectionRectVisible(false);
To copy to clipboard, switch view to plain text mode 

doesn't work (i.e. the rectangle is still visible) ?

The documentation says the following:

Note: The selection rectangle will only be visible if the selection mode is in a mode where more than one item can be selected; i.e., it will not draw a selection rectangle if the selection mode is QAbstractItemView::SingleSelection.
The selection mode is QAbstractItemView::ExtendedSelection which is why the rectangle is visible. Does it mean that QListView::setSelectionRectVisible(bool) has no effect ?