[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: Re: [PyQt] mousePressEvent not getting called
From: Phil Thompson <phil () riverbankcomputing ! co ! uk>
Date: 2008-01-17 23:08:04
Message-ID: 200801172308.04416.phil () riverbankcomputing ! co ! uk
[Download RAW message or body]
On Thursday 17 January 2008, Quoc Tran wrote:
> I'm having a weird problem with using my custom Qt widget in
> PyQt.
>
>
>
> I created a custom QFrame in C++ and overrided:
>
> virtual void mousePressEvent( QMouseEvent * );
>
>
>
> When I use my widget in python the mousePressEvent is never
> called but if I derive off of my custom class in PyQt and override
> the mousePressEvent it will get called.
>
> i.e.
>
> class
> MyPythonFrame(MyCPlusPlusFrame):
>
> def
> mousePressEvent(self, e):
>
>
> print "mouse event"
>
>
>
> Any ideas what I'm doing wrong?
The SIP file for your C++ class is probably incomplete.
Phil
_______________________________________________
PyQt mailing list PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic