[PyQt] Catching mouseclicks outside QPopup

Peter Shinners pshinners at blizzard.com
Fri Feb 22 18:28:24 GMT 2008


I have a custom QTextEdit widget opened as a QPopup. How can my widget
catch mouse clicks outside the widget area so it knows when to hide? I
want the same behavior as clicking outside a QMenu or QComboBox popup.
It seems like there would be some window flag I can set to do this
automatically? I've found grabMouse doesn't quite work, and also sets
off alarms from the desktop protection apps.

 

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20080222/629617f2/attachment.html


More information about the PyQt mailing list