I belive that the code is not a problem, rather the understanding of coordinates system.
I am passing from signal to slot the:
scenePos().x() in the qDebug() show the int, so I belive that I am reading only int values, but need to also read the decimal fraction.
How to do it is the problem.
But...when I zoom, let's say 3 times, I get high precision coordinates.(because the distance between 2 point is bigger, and this maybe be the reason).
Bookmarks