PDA

View Full Version : Cant override setVisible for a custom Widget



tonnot
26th January 2012, 16:49
I want to have control over setVisible method.

I have a public

virtual void setVisible(bool visible)
and

((QWidget*)this)->setVisible(visible);

now, i have recursive call (and stack overflow error)
Any help ? Thanks.

wysota
26th January 2012, 20:39
Should be QWidget::setVisible(visible)