'How to make Qt Application mainwindow to remain always on top of my web explorer in Windows OS?

enter image description here

Hi guys. here's what I want:like the picture show above. how to make the Qt Application always on top of my web explorer(not the Windows OS), just like embeded in my web page? The Qt Application and Web connected by websocket, the Qt Application was heavily controlled by my JavaScript code, like minimize、show、hide、close and etc. I've try setWindowFlags(Qt::Tool | Qt::FramelessWindowHint | Qt::WindowStaysOnTopHint), it works, but the Qt Application will cover any Windows application when I open another Windows application.

million thanks for any help!



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source