[PyKDE] [PyQt4] QWidget.winEvent()
Andreas Pakulat
apaku at gmx.de
Wed Aug 2 22:24:46 BST 2006
On 02.08.06 22:34:05, Jürgen Urner wrote:
> I have a question regarding winEvent()
>
> The Qt signature is QWidget::winEvent(MSG * message, long * result)
> PyQt4 does not support the explicit result parameter.
>
> def winEvent(msg):
> return False, id(msg)
>
> How am I supposed to return a message result and stop Qt from
> processing?
>
> My best guess is:
> - the first member of the return value is passed as msgResult
> - any other (int) than False in this member will stop Qt from processing
The PyQt4 variant of this function returns a tuple where the first
element is the same as the result value of the Qt function and the
second item is the long* result.
Hope this helps you.
Andreas
--
Don't look now, but there is a multi-legged creature on your shoulder.
More information about the PyQt
mailing list