> Phil Thompson <[EMAIL PROTECTED]> wrote:
>
>>> today I needed to call qt_tryAccelEvent(), but the function is not
> wrapped
>>> in PyQt, and it is undocumented. I don't know if there is a policy
>>> about
>>> this, but such functions are actually useful in code production in some
>>> corner-case situation.
>>>
>>> For instance, that function is useful to make accelerators work even in
>>> keyboard grabbing mode: it is sufficient to call it from within the
> widget
>>> which grabbed the keyboard, passing a copy of the QKeyEvent you
>>> received
>>> to
>>> it.
>>>
>>> Would it be possible to have this function wrapped in PyQt?
>>
>> Not if it isn't part of the official Qt API.
>
>
> Depends on your definition of API. It is not documented in Qt Assistant,
> but
> I can use it from C++ code with any official Qt version, without patching
> Qt
> in any way: it is defined in public headers and it is an exported symbold
> in
> dynamic libraries.

I've always interpreted "official" as "documented", particularly as the
documentation is generated from the code.

Phil

_______________________________________________
PyKDE mailing list    [email protected]
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Reply via email to