Results 1 to 5 of 5

Thread: Widget on desktop

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jun 2007
    Posts
    1
    Qt products
    Qt4
    Platforms
    Unix/X11

    Question Widget on desktop

    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).
    Last edited by hydr0g3n; 22nd June 2007 at 23:29. Reason: reformatted to look better

Similar Threads

  1. transparent background of the main widget
    By nagpalma in forum Qt Programming
    Replies: 2
    Last Post: 4th May 2007, 18:52
  2. How to send message to Desktop Widget
    By shyam prasad in forum Qt Programming
    Replies: 18
    Last Post: 18th April 2007, 12:00
  3. Controlling which widget on top layer?
    By JonathanForQT4 in forum Qt Programming
    Replies: 6
    Last Post: 22nd March 2007, 15:27
  4. Pin/Unpin Dock Widget
    By charlesD in forum Newbie
    Replies: 1
    Last Post: 21st June 2006, 07:57
  5. [Qt 4.1.0] Split a widget on demand
    By Townk in forum Qt Programming
    Replies: 3
    Last Post: 17th February 2006, 15:16

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.