[PyKDE] Wrapping undocumented function qt_tryAccelEvent?
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
>>> in PyQt, and it is undocumented. I don't know if there is a policy
>>> 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
>>> which grabbed the keyboard, passing a copy of the QKeyEvent you
>>> 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,
> I can use it from C++ code with any official Qt version, without patching
> in any way: it is defined in public headers and it is an exported symbold
> dynamic libraries.
I've always interpreted "official" as "documented", particularly as the
documentation is generated from the code.
More information about the PyQt