[Qt-interest] Handling mouse events in soft-realtime case

Oliver Demetz forenbeitraege at oliverdemetz.de
Fri Jul 31 11:03:42 CEST 2009


Well,
your right, as long as you are still in your paint event, no new event 
can be taken into account.
But then the point to tune your app is your paint event, which has to 
become faster. Think about which parts of your painting can be cached 
st. they dont cost computation time in every event.

Regards,
Oliver

İsmail Dönmez schrieb:
> Hi all,
> 
> I have a simple widget which draw lines when user presses a mouse and
> moves it, just a simple drawing application. Now, my problem is
> drawing tooks up to 3ms which is not that bad imho but the mouse
> events can arrive in under 600us which is less a ms.
> 
> The problem is if the mouse event happens when I am in paintEvent() I
> am losing the event. I wonder if there is a way to overcome this so I
> always receive mouse events even if I am busy drawing in paintEvent().
> 
> Any help/ideas appreciated.
> 
> Regards.
> 




More information about the Qt-interest-old mailing list