Hi to everybody,
I'm trying to understand multiple inheritance so I create this class:

Qt Code:
  1. class myRect(QRectF,QWidget):
  2. def __init__(self):
  3. super(QRectF,self).__init__(QRect(20,20, 200,200))
  4. 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