int main(int argc, char** argv) { QApplication a(argc, argv); Splash* s = new Splash; s->show(); return a.exec(); }
void NewGeneMainWindow::displaySplash(bool const opened_as_about_box) { theSplash = new Splash{this, this, opened_as_about_box}; Splash * view = theSplash; Qt::WindowFlags flags = view->windowFlags(); flags |= Qt::WindowStaysOnTopHint; flags |= Qt::SplashScreen; flags &= ~Qt::WindowContextHelpButtonHint; view->installEventFilter(view); view->setWindowFlags(flags); view->show(); //view->activateWindow(); }
void Game::splash(void) { Splash *splash = new Splash(this->width, this->height); splash->show(); delete splash; }