How can I toggle 'StaysOnTop'
General and Desktop
3
Posts
2
Posters
926
Views
1
Watching
-
I want to toggle StaysOnTop, and I wrote like above on Qt 5.3 MSVC2012 32bit Windows
@
void MainWindow::on_testButton_clicked()
{
setWindowFlags(windowFlags() ^ Qt::WindowStaysOnTopHint);
qDebug() << windowFlags();
show();
}
@First click makes window always on top.
But next click doesn't make disabled always on top.
Is this a normal operation?
And how can I toggle always on top? -
Duplicate of