Qt-interest Archive, June 2007
How to make a widget stay always on top?
Message 1 in thread
How to make a widget stay always on top, not hidden by any others?
Thanks,
Lingfa
--
[ signature omitted ]
Message 2 in thread
Lingfa Yang wrote:
> How to make a widget stay always on top, not hidden by any others?
>
See QWidget::setWindowFlags(..) method and the Window Flag:
Qt::WindowStaysOnTopHint
--Justin
begin:vcard
begin:vcard
fn:Justin Noel
n:Noel;Justin
org:ICS;Engineering
adr:;;54B Middlesex Trpk;Bedford;MA;01730;USA
email;internet:justin@xxxxxxx
title:Sr. Consulting Engineer / Certified Qt Instructor
tel;work:(617) 621-0060
url:http://www.ics.com
version:2.1
end:vcard
Message 3 in thread
On 6/6/07, Lingfa Yang <lingfa@xxxxxxx> wrote:
> How to make a widget stay always on top, not hidden by any others?
setWindowFlags( windowFlags() | Qt::WindowStaysOnTopHint);
See:
http://doc.trolltech.com/4.3/qwidget.html#windowFlags-prop
http://doc.trolltech.com/4.3/qt.html#WindowType-enum
--
[ signature omitted ]
Message 4 in thread
Andrew Medico wrote:
> On 6/6/07, Lingfa Yang <lingfa@xxxxxxx> wrote:
>
>> How to make a widget stay always on top, not hidden by any others?
>
>
> setWindowFlags( windowFlags() | Qt::WindowStaysOnTopHint);
>
Andrew,
This is exactly what I want. I tested it. It works well.
Thank you so much,
Lingfa
--
[ signature omitted ]
Message 5 in thread
Look into the window attributes and window flags area of the
documentation....
> -----Original Message-----
> From: Lingfa Yang [mailto:lingfa@xxxxxxx]
> Sent: Wednesday, June 06, 2007 9:55 AM
> To: Qt Interest
> Subject: How to make a widget stay always on top?
>
> How to make a widget stay always on top, not hidden by any others?
>
> Thanks,
> Lingfa
>
>
> --
> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with
> "unsubscribe" in the subject or the body.
> List archive and information: http://lists.trolltech.com/qt-interest/
--
[ signature omitted ]