Thank you!


My last code had only one error - I used
mouseEvent->pos()
instead of
mouseEvent->scenePos()
Now it works