[Interest] Always on top

igor.mironchik at gmail.com igor.mironchik at gmail.com
Mon Feb 17 13:06:20 CET 2014


It seems that I've solved the problem with QWidget::raise().

-----Original Message----- 
From: william.crocker at analog.com
Sent: Monday, February 17, 2014 12:36 PM
To: interest at qt-project.org
Subject: Re: [Interest] Always on top

On 02/17/2014 03:49 AM, igor.mironchik at gmail.com wrote:
> Hi.
> I return to the subject of the drawing on top of the child widgets.
> I understand that I can’t paint on top of the child, but I can create 
> child
> widgets that will be positioned to right place.
> But if I have parent with two child widgets, and I want one to be on top 
> of
> other. I was trying to
> setAttribute( Qt::WA_WindowPropagation)
> on that widget. And have no success. The widgets with this attribute draws 
> under
> the first one.
> What can I do else? Thanks.
>

This works for my purposes:

      setAttribute(Qt::WA_TransparentForMouseEvents,true);


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


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




More information about the Interest mailing list