The usual way to use Qt widgets from Python is to subclass them.
There are a lot of methods in the classes of the Qt widget, so I will inevitably add a method to a subclass with the same name as the one inherited from the Qt widget. In Python, all methods are virtual, so what worries me is that some Qt code may end up calling my method instead of the expected Qt-one - in the worst case, crack some extreme case that doesn't just show in testing.
On the other hand, it is possible that all PyQt methods are just wrappers for C ++ code, which, of course, will not be affected by anything that I do from the point of view of the Python subclass.
Does anyone know what it is?
source share