[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: Re: [PyKDE] [PyQt4] QWidget.winEvent()
From: Andreas Pakulat <apaku () gmx ! de>
Date: 2006-08-02 21:24:46
Message-ID: 20060802212446.GE19142 () morpheus ! apaku ! dnsalias ! org
[Download RAW message or body]
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.
_______________________________________________
PyKDE mailing list PyKDE@mats.imk.fraunhofer.de
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic