How do I create with Qt 4 a window that remains anchored to the开发者_JAVA技巧 desktop as a widget ? (e.g. like Yahoo Widgets or Google Gadgets).
I intend to give the same characteristics of a widget to a normal window:
- Remove the edges (easy to do)
- The window must not move (how ?)
- Must be displayed only when other windows are minimized (how ?)
I think setting these flags will do what you are looking for:
setWindowFlags(Qt::FramelessWindowHint | Qt::WindowStaysOnBottomHint);
- Remove the edges ---> Qt::FramelessWindowHintwill remove the edges
- The window must not move ---> (AFAIK) you can't move window when Qt::FramelessWindowHintflag is set
- Must be displayed only when other windows are minimized ---> Qt::WindowStaysOnBottomHintwill keep the application window below all other windows
I don't think Qt provides anything specific to do this. You will need to create and manage your own window but you can use QDesktopWidget to help.
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论