Skip to content Skip to sidebar Skip to footer

Multiple Inheritance Order In Python3/pyqt

I met an issue when using multi inheritance with PyQt, the Programe 1# source code as below: #!python3 import sys; from PyQt5.QtWidgets import *; from PyQt5.QtGui import *; from Py

Solution 1:

ekhumoro gave the exactly answer what I need.

As stated in the docs, pyqt does not support multiple inheritance of qt classes. Which is to say, it won't work the way you would normally expect it to in normal python.

Having said that, this blog post has some interesting insights and work-arounds (but note that it was originally written for pyqt4, so some things may now be out of date).

Post a Comment for "Multiple Inheritance Order In Python3/pyqt"