Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Qt Embedded - Window always above
I'm developping a project for Qt Embedded 4.8 where I have too applications running, one should always be above the other in all cases. I know there is the Qt::WindowStaysOnTopHint flag, but if both applications set it, then they behave as if none of them had it, which is pretty normal.
So, does anybody have an idea on how to do that ? Any hint on a way to modify QWS to specify that one application has to stay on top ?
Many thanks for your thoughts,
Hi and welcome to devnet,
There's something not clear, why would both set that flag since you know only one should have it ?
Good question, I should have explained better: I have control only over one of the 2 apps, so I can not know that the second app will not use the WindowStaysOnTopHint flag.
Then you might have to modify QWSServer to handle things the way you want
That was exactly the sense of my question : any hint on a way to modify QWS to specify that one application has to stay on top ?
Thank you in advance if you have any pointer to give me !
One idea (not tested though) would be to add some sort of registration function where you give the application ID that must stay on top and draw it last
Hope it helps
Thank you! That's indeed the direction I thought I would take. I've never looked into the QWS code, any idea where to start searching in order to do this type of modification ?
Many thanks for you help,
I would go for the qwindowsystem* files