I guess you set the window flags using QWidget::setWindowFlags:
splash.setWindowFlags(Qt::WindowStaysOnTopHint);
QSplashScreen splash(pixmap);
splash.setWindowFlags(Qt::WindowStaysOnTopHint);
To copy to clipboard, switch view to plain text mode
This goes wrong, because you reset all other flags, especially Qt::SplashScreen.
You should try:
splash.setWindowFlags(splash.windowFlags() | Qt::WindowStaysOnTopHint);
QSplashScreen splash(pixmap);
splash.setWindowFlags(splash.windowFlags() | Qt::WindowStaysOnTopHint);
To copy to clipboard, switch view to plain text mode
or even simpler:
QSplashScreen splash(pixmap, Qt::WindowStaysOnTopHint);
To copy to clipboard, switch view to plain text mode
because the constructor automatically adds other required flags.
Bookmarks