gab74
12th September 2011, 18:00
Good mornig,
i've a widget with a button that opens another widget:
when i click to the button i set the property Childwidget->show() and all works well; (the child widget is shown)
when i click the button again (it is a qpushbutton checkable) i want the widget to be hidden so i set Childwidget->hide() but the widget doesent disappear...
Whith the debug i see the code is executed correctly...
if(mybutton->isChecked()) {
ChildWidget->show();
}
else {
ChildWidget->close(); /// i try also ChildWidget->Hide()
}
but the widget using hide or close doesent disappear..at all...
What is the problem ?
Thanks !!!
i've a widget with a button that opens another widget:
when i click to the button i set the property Childwidget->show() and all works well; (the child widget is shown)
when i click the button again (it is a qpushbutton checkable) i want the widget to be hidden so i set Childwidget->hide() but the widget doesent disappear...
Whith the debug i see the code is executed correctly...
if(mybutton->isChecked()) {
ChildWidget->show();
}
else {
ChildWidget->close(); /// i try also ChildWidget->Hide()
}
but the widget using hide or close doesent disappear..at all...
What is the problem ?
Thanks !!!