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 -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -