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

jquery - Invalid Assignment Left-Hand Side -

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

asp.net mvc - Implementing normal user/pass, Twitter & Facebook auth -