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

Is there a better way to structure post methods in Class Based Views -

reflection - How to access the object-members of an object declaration in kotlin -

php - Doctrine Query Builder Error on Join: [Syntax Error] line 0, col 87: Error: Expected Literal, got 'JOIN' -