Hi, I programmed my own widget (inherits from QWidget) but I can't get it to display as I want. This widget has no parent.
Here is what I want:
- It should be displayed on the desktop (always if possible). This is the opposite of the "Always Stays On top" Property
- It shouldn't have an entry in the taskbar
- It shouldn't have a window frame (this is OK using self.setWindowFlags(QtCore.Qt.FramelessWindowHint) )
I tried to tweak the widget properties and the window properties, here are my tests:
- self.setWindowFlags(Qt.FramelessWindowHint|Qt.Tool )
This has a taskbar entry...
- self.setWindowFlags(Qt.FramelessWindowHint|Qt.Tool |Qt.X11BypassWindowManagerHint)
This has not taskbar entry but it always displays on top... If I call "self.lower()" to put it at the background, it just disapears and calling "self.show()" doesn't help...
- self.setWindowFlags(Qt.FramelessWindowHint|Qt.Tool Tip)
Same as the previous one... This has not taskbar entry but it always displays on top... If I call "self.lower()" to put it at the background, it just disapears and calling "self.show()" doesn't help...
I spent a lot of time trying to get the behaviour I want but I kinda stuck now... If anyone has an idea, please tell me
Note: I'm using Qt4 on KDE (pyQt4 in fact but it doesn't really matter).
Bookmarks