[PyKDE] Wrapping undocumented function qt_tryAccelEvent?

Phil Thompson phil at riverbankcomputing.co.uk
Wed May 11 19:05:19 BST 2005


> Phil Thompson <phil at riverbankcomputing.co.uk> 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




More information about the PyQt mailing list