Re: [PyQt] Catching mouseclicks outside QPopup

2008-02-22 Thread Giovanni Bajo
On 2/22/2008 7:28 PM, Peter Shinners wrote: 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 windo

[PyQt] Catching mouseclicks outside QPopup

2008-02-22 Thread Peter Shinners
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