Hi,
could someone explain why the following:
this->sectorsList->setSortingEnabled(true);
this->sectorsList->setSelectionRectVisible(false);
this->sectorsList = new QListWidget;
this->sectorsList->setSortingEnabled(true);
this->sectorsList->setSelectionMode(QAbstractItemView::ExtendedSelection);
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 ?
Bookmarks