继承 QObject and QDesignerMemberSheetExtension .
The QPyDesignerMemberSheetExtension class is provided to work around the fact that it is not possible for a Python class to derive from multiple Qt 类。
In order to manipulate a widget's member functions when configuring connections you should implement a Python class derived from QPyDesignerMemberSheetExtension rather than one derived from QObject and QDesignerMemberSheetExtension .
parent argument, if not None, causes self to be owned by Qt instead of PyQt.