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.dang...@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

Attachment: smime.p7s
Description: Firma crittografica S/MIME

_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to