I have a couple of WPainter questions

I zoom the WPaintedWidget using

painter.setWindow(0,0,width+zoomDelta,height+zoomDelta)

this code will zoom my window

but after zooming my mouse event are not giving coordinates properly

mouseEvent.widget().x and mouseEvent.widget().y are bit shifted from the
actual position where i clicked on screen

I think this is because setWindow do some scale and translate.

How can I get the mousePoisition based on the new window

in WMouseEvent class there are some functions called screen,window,widget
etc...

what are they used for??



-- 
Regards,
   Rashad
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to