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

Nicolas Krieger nicolas.krieger at medecom.fr
Wed Jun 13 09:26:22 CEST 2018


Hi,

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.

There is an example in the attachment. There is a QFrame and under a 
QPushButton ("LOL"). This is two different layouts (one for the QFrame 
and one for the button) added in the same cell of a QGridLayout.

The other way of doing it would have been to add the button in the 
QFrame. But when the border is hidden, the button is resized. And I 
don't want to.

My problem is that with the solution of adding two widgets in the same 
cell of a QGridLayout, I can not use the "LOL" button. How can I do 
that. I would like to continue using a QFrame because of the border 
convenience.

-- 
*Nicolas Krieger*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20180613/75065554/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dodoeammbonldjkc.png
Type: image/png
Size: 2449 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20180613/75065554/attachment.png>


More information about the Interest mailing list