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

Igor Mironchik igor.mironchik at gmail.com
Wed Jun 13 09:53:16 CEST 2018


Hi,

Why not to draw the same border but with Qt::transparent color?


On 13.06.2018 10:26, Nicolas Krieger wrote:
>
> 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*
>
>
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20180613/a1f7da2c/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/a1f7da2c/attachment.png>


More information about the Interest mailing list