Details
-
Bug
-
Resolution: Done
-
P2: Important
-
4.3.3
-
None
-
0644e3dce532b1df00a77d3a30c61d6b75d3ff30
Description
With a QTableView set to use SelectionBehavior(QAbstractItemView::SelectRows) and SelectionMode(QAbstractItemView::ExtendedSelection) the CTRL select does not seem to function correctly.
Dragging the mouse together with the CTRL key on the viewport toggles the
selection of the rows - like expected.
Doing the same on the row headers on the left of the widget leads to different ( pointless ) selections.
This can be seen with the following sample code:
#include <QtGui>
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
QTableWidget tableWidget(5,5);
tableWidget.setSelectionBehavior(QAbstractItemView::SelectRows);
tableWidget.setSelectionMode(QAbstractItemView::ExtendedSelection);
tableWidget.show();
return app.exec();
}