qt - QGraphicsView Zoom 1:1 -


i implemented graphics_view_zoom.h class pavel strakhov , works pretty fine. qgraphicsview zooming in , out under mouse position using mouse wheel however, need have button in mainwindow bring scale/zoom 1:1 can on ? tried add "counter" , increase when angle negative (zooming in) , decrease when positive (zooming out) , block zooming function if counter<0, doesnt stop @ 1:1. @ cases stops @ couple steps earlier missing or better/easier way achieve ? thanks


Comments

Popular posts from this blog

angular - DownloadURL return null in below code -

python 2.7 - Given three nested dictionaries, sort the top two nested dictionaries from a value in the innermost dictionary? -