qt4 - how to Fit QGraphicsScene in a QGraphicsView -


i want to fit qgraphicsscene in qgraphicsview different dimensions, such shrink or expand according size of view, , there should no scrollbar.

scaling view bellow doing required:

view->scale(framewidth / scenewidth, frameheight / sceneheight); 

Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

wcf binding - How to create a wsdl file for a WCF service library? -