QtWidgetPlugin
A Plugin for Louie that knows how to handle Qt widgets when using PyQt built with SIP 4 or higher.
The QtWidgetPlugin class is accessible via the louie module.
Weak references are not useful when dealing with QWidget instances, because even after a QWidget is closed and destroyed, only the C++ object is destroyed. The Python 'shell' object remains, but raises a RuntimeError when an attempt is made to call an underlying QWidget method.
This plugin alleviates this behavior, and if a QWidget instance is found that is just an empty shell, it prevents Louie from dispatching to any methods on those objects.
Methods
See the source for more information.