Joey Mukherjee | 18 Aug 15:15

QGraphics... and Qwt

Has anyone else tried using the new QGraphics* (Widgets on a Canvas)  
series of routines in the new Qt 4.4+ with Qwt?

We tried it, and it seems to work okay, except for mouse-release  
events with things such as the QwtPlotZoomer (panning and picking  
exhibit the same problem).  You will be zooming, and it will never  
register that you released the mouse button so you rubber-band will  
always be "band-ing" around.  If you hit Return, it will zoom.  Strange!

Anyway, before I debug too far, has anyone done it or does anyone  
have any ideas on how to fix or even what might be wrong?

Cheers,
Joey

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
Uwe Rathmann | 18 Aug 17:32
Picon

Re: QGraphics... and Qwt

On Monday 18 August 2008 15:16, Joey Mukherjee wrote:

> Has anyone else tried using the new QGraphics* (Widgets on a Canvas)
> series of routines in the new Qt 4.4+ with Qwt?

No ( at least not me ), but I would be interested in the results of your 
tests - especially, what happens on a OpenGL canvas.

> We tried it, and it seems to work okay, except for mouse-release
> events with things such as the QwtPlotZoomer (panning and picking
> exhibit the same problem).  You will be zooming, and it will never
> register that you released the mouse button so you rubber-band will
> always be "band-ing" around.  If you hit Return, it will zoom.  Strange!

There is a lot of event redirection going on between QAbstractScrollArea and 
its viewport. Maybe the MouseRelease event gets lost before it finds its way 
into the eventFilter of the picker.

Uwe

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/

Gmane