I got it 
def resize():
width=ui.graphicsView.frameRect().width()
rr=ui.graphicsView.mapToScene(ui.graphicsView.frameRect())
ui.graphicsView.fitInView(0,0,width,300)
ui.graphicsView.ensureVisible(rr.boundingRect(),-2,0)
def resize():
width=ui.graphicsView.frameRect().width()
rr=ui.graphicsView.mapToScene(ui.graphicsView.frameRect())
ui.graphicsView.fitInView(0,0,width,300)
ui.graphicsView.ensureVisible(rr.boundingRect(),-2,0)
To copy to clipboard, switch view to plain text mode
only have to figure out why it wont initiate properly when first run, any ideas ?
Bookmarks