View Full Version : Scene focusing in QGraphicsView
mistertoony
9th March 2007, 16:14
I have a large scrollable QGraphicsView area and I would like to receive input from the user concerning coordinates and would like for the scene to focus on the coordinates of interest. What functions of QGraphicsScene would make this possible? -Anthony
giverson
9th March 2007, 16:34
QGraphicsView::centerOn will center on a location
QGraphicsView::mapToScene will convert view coords to scene coords
Everything else, you can probably find here:
http://doc.trolltech.com/4.2/classes.html
http://doc.trolltech.com/4.2/qgraphicsscene-members.html
http://doc.trolltech.com/4.2/qgraphicsview-members.html
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.