I want to create an app, where the user will decide it the main window will stay always on top of the other apps.
In PyQt4 it is easy to create a window that will stay always on top. This is covered here : PyQt: Always on top
What I want to have a widget (menu item, checkbox etc) that will toggle this behavior on or off. So far i haven't found a way to reset the original behavior.
thank you
UPDATE After the suggestion of İsmail 'cartman' Dönmez, I searched a bit more and I found an implementation of the WindowFlags example in PyQt4.
It can be found here
windowFlags()
to preserveQt.WindowFlags
type. If I try to use XOR and build up flags from scratch (in my caseQt.Dialog ^ Qt.WindowContextHelpButtonHint
), I getTypeError
as I end up withint
instead ofQt.WindowFlags
. – Vouvray