diff --git a/src/libs/vwidgets/vmaingraphicsscene.cpp b/src/libs/vwidgets/vmaingraphicsscene.cpp index ad84b48ec..8a3e3f194 100644 --- a/src/libs/vwidgets/vmaingraphicsscene.cpp +++ b/src/libs/vwidgets/vmaingraphicsscene.cpp @@ -30,6 +30,7 @@ #include #include #include +#include //--------------------------------------------------------------------------------------------------------------------- /** @@ -71,6 +72,14 @@ void VMainGraphicsScene::mousePressEvent(QGraphicsSceneMouseEvent *event) { emit mousePress(event->scenePos()); QGraphicsScene::mousePressEvent(event); + if (QGuiApplication::keyboardModifiers() == Qt::ControlModifier) + { + QList items = selectedItems(); + for (int i=0; i< items.size(); i++) + { + items[i]->setSelected(false); + } + } } //---------------------------------------------------------------------------------------------------------------------