Hello, i'm trying to hide window after its startup. I have own window-class wich is inherited from QMainWindow. I rewrited showEvent like this:
void showEvent (QShowEvent *evt)
{
if (firstShow)
{
hide();
firstShow = false;
}
else
{
QMainWindow::showEvent(evt);
}
}
But it doesn't work. firstShow is a boolean variable, wich is true at start. Language: c++