1 Attachment(s)
QSplashscreen, Qt.WindowStaysOnTopHint And Title Bar
Hello :)
I'm using a QSplashscreen for the starting of my Application, the problem I'm encountering is that when I'm using the Window Flag Qt.WindowStaysOnTopHint the QSplashscreen stays on top of every other windows but it also shows a Title bar and a frame ( same on Mac Os X and Windows ).
Anyone have an idea of what to do to avoid this ?
Thx,
KS
Re: QSplashscreen, Qt.WindowStaysOnTopHint And Title Bar
I guess you set the window flags using QWidget::setWindowFlags:
Code:
splash.setWindowFlags(Qt::WindowStaysOnTopHint);
This goes wrong, because you reset all other flags, especially Qt::SplashScreen.
You should try:
Code:
splash.setWindowFlags(splash.windowFlags() | Qt::WindowStaysOnTopHint);
or even simpler:
because the constructor automatically adds other required flags.
Re: QSplashscreen, Qt.WindowStaysOnTopHint And Title Bar
Excellent !
I didn't realised that it was resetting the other flags, but now that make sense. Thanks :)