Hi to everybody,
I'm trying to understand multiple inheritance so I create this class:
def __init__(self):
class myRect(QRectF,QWidget):
def __init__(self):
super(QRectF,self).__init__(QRect(20,20, 200,200))
super(QWidget,self).__init__()
To copy to clipboard, switch view to plain text mode
But I get the error:
super(QRectF,self).__init__(QRect(20,20, 200,200))
TypeError: QWidget(parent: QWidget = None, flags: Union[Qt.WindowFlags, Qt.WindowType] = Qt.WindowFlags()): argument 1 has unexpected type 'QRect'
How can make this kind of inheritance?
Thank you
Bookmarks