I'm going to design OgreWidget class -A portable renderer widget with Qt.
(With my design), I think my class need to be inherited with QThread (for infinite render loop ) and QWidget ( target widget for ogre to render there) .
But according to many documentation and articles (for instance this), Virtual inheritance with QObject is not supported .
Result of this inheritance will be such a error:
QObjectis an ambiguous base ofOgreWidget
How should I resolve this problem ?
PS: In my old design , I create a separate QWidget , and Send It's WId to my OgreWidget as target widget. However, I'm now going to design a better and cleaner interface.