cic
8th April 2014, 11:00
Hello all,
I am not sure whether it is Qt relevant but it would be a big help if Qt provides already a solution.
In my project there is a template class which determins which QWidget would be taken as the base class.
e.g
template <class Q, class W>
class MyWidget : public Q, public W
{
...
}
here Q - QWidget, W - Windows API relevant Widget
there is a class derives from MyWidget, e.g MyWidgetEx<QWidget, WWidget>
plenty of my widgets are inherited from this base widget MyWidgetEx.
The problem now i face is one of the widgets need to use a specific QWidget, e.g QTabWidget and also all methods from MyWidgetEx
in which i dont find a way to "get through" this MyWidgetEx let it inherite QTabWidget so that i can directly use it.
I am not sure whether it is Qt relevant but it would be a big help if Qt provides already a solution.
In my project there is a template class which determins which QWidget would be taken as the base class.
e.g
template <class Q, class W>
class MyWidget : public Q, public W
{
...
}
here Q - QWidget, W - Windows API relevant Widget
there is a class derives from MyWidget, e.g MyWidgetEx<QWidget, WWidget>
plenty of my widgets are inherited from this base widget MyWidgetEx.
The problem now i face is one of the widgets need to use a specific QWidget, e.g QTabWidget and also all methods from MyWidgetEx
in which i dont find a way to "get through" this MyWidgetEx let it inherite QTabWidget so that i can directly use it.