[PyKDE] setMouseTracking

Jim Bublitz jbublitz at nwinternet.com
Thu Apr 10 00:18:00 BST 2003


On 09-Apr-03 Frederick Polgardy Jr wrote:
> Huh, it's true.  This code only shows me mouse tracking when the
> mouse is down:
 
> class MyCanvasView(QCanvasView):

I haven't traced this out thoroughly, but my guess is that
since QCanvasView is a QScrollView descendant, and QScrollView is
really a compound widget, the mouseMove events are probably going
to the 'viewport' widget that QScrollView owns. You can probably
install an eventHandler on the viewport widget and collect the
events.

If that's not correct, it's probably something similar.

Jim




More information about the PyQt mailing list