hello ,
Im trying to paint a rect in paintEven,
but the rect I draw has a definided values for hieght and widt, which could be really big comparing to the widget.
so i want to painter
- to scale the rect based on the widget size, how can i do that ??
- as well as i want my (0,0) to be in the bottom left of the widget not in the top left.
I have attache an example of what i have trying to and the result i got.
i also tried to do zooming and panning on it.
Thanks for any help
here an example of the code im doing :
PaintEventTest.zip
Bookmarks