kaushal_gaurav
24th July 2008, 08:34
Hi,
I have a template class
template< class WIDGET >
class WidgetItem : public WIDGET, public QGraphicsItem
it can accept any widget as parameter... Now i pass MyWidget class derived from QWidget as a parameter. Now it should treat MyWidget as a widget...
But ... All other widgets like... QPushButton, QLabel etc are shown but MyWidget is not shown...
I have tried doing brute force debuging by setting wait cursor on my widget..
The cursor is changed tp wait cursot but the widget is not shown...
Please help..
I have a template class
template< class WIDGET >
class WidgetItem : public WIDGET, public QGraphicsItem
it can accept any widget as parameter... Now i pass MyWidget class derived from QWidget as a parameter. Now it should treat MyWidget as a widget...
But ... All other widgets like... QPushButton, QLabel etc are shown but MyWidget is not shown...
I have tried doing brute force debuging by setting wait cursor on my widget..
The cursor is changed tp wait cursot but the widget is not shown...
Please help..