[PyQt] Problems with mousePressEvent
piotr maliński
riklaunim at gmail.com
Thu Dec 4 10:15:48 GMT 2008
I have a widget made in QtDesigner, I use it in a standard for this class,
everything works, except one tiny problem. I want to catch mouse events:
def mousePressEvent(self, event):
print 'test'
It works if I click mouse on the widget, but only if the cursor is on the
widget "background" - and I want it to work when I click something on
QListWidget (self.ui.items) that is on that custom widget (self.ui).
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20081204/ebd10f63/attachment.html
More information about the PyQt
mailing list