I have a QWidget where I draw a few lines and I would like to enable / implement the zoom function to better see the image I draw. And I want to associate this with the mouse wheel, as in normal browsers, when you can zoom in and out by pressing the "ctrl" key and turning the mouse wheel.
Is there a default function for this? I tried to find some examples, but no luck. So how can I do this?
source share