Hogwarts
17th December 2010, 17:01
Hi
I'm trying to delete a widget or several widgets content in a QBoxLayout. How can I do this?
This is my code:
void CustomRadioButton::deleteOption(int pos)
{
if(pos >= 0 && pos < getLayout()->count())
{
delete getLayout()->takeAt(pos);
update();
}
}
I think I managed to delete the widget, but the layout do not updated visually. Any idea??
Thanks in advanced and excuse my English.
I'm trying to delete a widget or several widgets content in a QBoxLayout. How can I do this?
This is my code:
void CustomRadioButton::deleteOption(int pos)
{
if(pos >= 0 && pos < getLayout()->count())
{
delete getLayout()->takeAt(pos);
update();
}
}
I think I managed to delete the widget, but the layout do not updated visually. Any idea??
Thanks in advanced and excuse my English.