[Interest] Find frontmost widget of specific type?
Giuseppe D'Angelo
giuseppe.dangelo at kdab.com
Mon Oct 22 23:34:14 CEST 2018
Il 22/10/18 23:22, Henry Skoglund ha scritto:
> Hi, just an idea, but obviously somewhere deep inside Qt's bowels
> (rather, the painting system) there's knowledge of which window obscures
> which etc.
There isn't. Compositing window managers have been a reality on desktop
machines since Mac OS X 10.2 (2002), maybe even before that.
The only really robust approach is asking the WM what are the visible
windows and their stacking order. Keeping the order in Qt is also
feasable, modulo of course bugs in the Qt / WM interaction...
My 2 c,
--
Giuseppe D'Angelo | giuseppe.dangelo at kdab.com | Senior Software Engineer
KDAB (France) S.A.S., a KDAB Group company
Tel. France +33 (0)4 90 84 08 53, http://www.kdab.com
KDAB - The Qt, C++ and OpenGL Experts
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4007 bytes
Desc: Firma crittografica S/MIME
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20181022/dc08d143/attachment.bin>
More information about the Interest
mailing list