代码示例:
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
{
// ...
};
还有什么其他方法可以解决这个问题?