What exactly is a ChildWidget ? (I mean what class)
What I meant is:
1) does this class use custom implementations of "close()", "hide()", "closeEvent()" ?
2) do you have any event filters installed on the ChildWidget object (or qApp object) ?
I'm asking because you have used a method ChildWidget->Hide(), which I think is something you have implemented.
Whith the debug i see the code is executed correctly...
So you can see those messages correctly ?
if(mybutton->isChecked()) {
ChildWidget->show();
qDebug() << "show()";
}
else {
ChildWidget->close(); /// i try also ChildWidget->Hide()
qDebug() << "close()";
}
if(mybutton->isChecked()) {
ChildWidget->show();
qDebug() << "show()";
}
else {
ChildWidget->close(); /// i try also ChildWidget->Hide()
qDebug() << "close()";
}
To copy to clipboard, switch view to plain text mode
Bookmarks