[Interest] Creating Desktop Widgets (aka Desklets) in Qt

Tony Rietwyk tony at rightsoft.com.au
Wed Jul 25 03:26:56 CEST 2012


> Sent: Wednesday, 25 July 2012 1:35 AM
> 
> Hi, I am tasked in creating desktop widgets (aka desklets, stuff like system
> monitors, clocks, etc) in Qt, the target platform is Windows.
> 
> So far I managed to create a frameless window which stays on bottom and
> isn't shown on taskbar by following window flags:
> Qt::SubWindow | Qt::FramelessWindowHint |
> Qt::WindowStaysOnBottomHint
> 
> However no matter what I tried, I didn't manage to keep the desklets shown
> when user presses the Windows "show desktop" icon. Does anybody know a
> way?
> 
> The desklet class is a subclass of QWidget, using QDesktopWidget doesn't
> help the situation at all (and from docs it's clear it is for different purpose).
> I tried intercepting events which make the desklet hide, but it seems this is a
> special case not handled by any event... I tried all prospective window flags,
> even those more crazy in the aspect. But all to no avail...

They are called gadgets on Windows.  From a quick read, I doubt Qt is any use: 

http://msdn.microsoft.com/en-us/library/windows/desktop/bb456468%28v=vs.85%29.aspx

Regards, 

Tony





More information about the Interest mailing list