[Interest] How to have partially transparent widget on top that do not catch events

Giuseppe D'Angelo giuseppe.dangelo at kdab.com
Wed Jun 13 09:58:39 CEST 2018


Hi,

Il 13/06/2018 09:26, Nicolas Krieger ha scritto:
> I would like to have a border in my widget, just like a QFrame. But a 
> QFrame which border is over and not beside. I want to hide and show the 
> border, but without layout re-sizing effects.

Probably a shot in the dark, I'm not sure I understood your requirements 
fully, but can't you just subclass QPushButton, override its paintEvent, 
and in there call the base class implementation and then draw your 
decoration?

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/20180613/508c8d93/attachment.bin>


More information about the Interest mailing list