Maybe. In any case the following code seems to solve the behavior and make what you must see on another platform.
{
if ((event->button() & Qt::LeftButton) &&
!(event->modifiers() & Qt::ShiftModifier) &&
!(event->modifiers() & Qt::ControlModifier))
{
selectionModel()->clearSelection();
}
}
void DataTable::mousePressEvent(QMouseEvent *event)
{
if ((event->button() & Qt::LeftButton) &&
!(event->modifiers() & Qt::ShiftModifier) &&
!(event->modifiers() & Qt::ControlModifier))
{
selectionModel()->clearSelection();
}
QAbstractItemView::mousePressEvent(event);
}
To copy to clipboard, switch view to plain text mode
Bookmarks