I can't be sure (without looking at the source code) that calling hide() might be an end-run around setVisible( false )
From the docs:
Hides the widget. This function is equivalent to setVisible(false).
sources:
{
setVisible(false);
}
{
bool isPopup = data->window_flags & Qt::Popup & ~Qt::Window;
if (isWindow() && !isPopup && qApp->styleHints()->showIsFullScreen())
showFullScreen();
else
setVisible(true);
}
void QWidget::setHidden(bool hidden
) {
setVisible(!hidden);
}
// sorry i forgot this one:
{
...
...
setVisible(true);
...
}
void QWidget::hide()
{
setVisible(false);
}
void QWidget::show()
{
bool isPopup = data->window_flags & Qt::Popup & ~Qt::Window;
if (isWindow() && !isPopup && qApp->styleHints()->showIsFullScreen())
showFullScreen();
else
setVisible(true);
}
void QWidget::setHidden(bool hidden)
{
setVisible(!hidden);
}
// sorry i forgot this one:
void QWidget::showFullScreen()
{
...
...
setVisible(true);
...
}
To copy to clipboard, switch view to plain text mode
Bookmarks