Mehrfachvererbung mit qobject base
Beispiel für Code:
class TestOne : public QWidget // To fix this i need to modify class QWidget : public virtual QObject{}; which belongs to qt
{
// ...
};
class TestTwo : public virtual QObject
{
// ...
};
class Test : public TestOne, public TestTwo
{
// ...
};
Was sind andere Möglichkeiten, um dieses Problem zu umgehen?