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?

 

Thanks!


_________________________________________________________________

_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Reply via email to