here i have a scene and a associated view ,then i hava a position in the scene coordinates.I want to set the center of the viewport with the position.How can i do it? I try to use the translate() function but it didn't work?
view->translate(10, 10);
The viewport should move with the delta x 10, and delta y 10, but it didn't work!
QTransform
or I can useQGraphicsView::translate()
and nothing happens. Kind of frustrating. – Sn