qt graphics scene map cursor position

Solutions on MaxInterview for qt graphics scene map cursor position by the best coders in the world

showing results for - "qt graphics scene map cursor position"
Bobbi
07 Jan 2020
1QPoint viewPoint = ui->graphicsView->mapFromGlobal(QCursor::pos());
2QPointF scenePoint = ui->graphicsView->mapToScene(viewPoint);
3myWidget->setPos(scenePoint);
similar questions
queries leading to this page
qt graphics scene map cursor position