Qt-interest Archive, January 2007
Creating a non-top-level window with only a titlebar
Message 1 in thread
I would like to create a window that has only a title bar - no
maximize, minmize or close button. It's easy enough for a
top-level window, but setting the window flags doesn't work
for windows that are not top level.Can anyone point me to
a solution?
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
--
[ signature omitted ]
Message 2 in thread
I'd be grateful for a response - even an RTFM that points
me in the right direction.
This is a transient window created a result of actions
within the main window - as such it only needs a title
bar to indicate what info is being provided, and a frame
to make it stand out from the background, but none
of the buttons.
----- Original Message ----
From: David Scriven <davidwriter@xxxxxxxxx>
To: qt-interest@xxxxxxxxxxxxx
Sent: Friday, January 12, 2007 4:20:12 PM
Subject: Creating a non-top-level window with only a titlebar
I would like to create a window that has only a title bar - no
maximize, minmize or close button. It's easy enough for a
top-level window, but setting the window flags doesn't work
for windows that are not top level.Can anyone point me to
a solution?
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
--
[ signature omitted ]
Message 3 in thread
Tuesday 16 January 2007 17:06 skrev David Scriven:
> I'd be grateful for a response - even an RTFM that points
> me in the right direction.
>
> This is a transient window created a result of actions
> within the main window - as such it only needs a title
> bar to indicate what info is being provided, and a frame
> to make it stand out from the background, but none
> of the buttons.
You can use a tool window (set the windowflag Qt::Tool) which does what you
want, except the titlebar is smaller than normal windows. Otherwise, you
should be able to set the appropriate window hints and remove the ones you
don't want (search for WindowFlags in assistant to get a list of them).
Bo.
> ----- Original Message ----
> From: David Scriven <davidwriter@xxxxxxxxx>
> To: qt-interest@xxxxxxxxxxxxx
> Sent: Friday, January 12, 2007 4:20:12 PM
> Subject: Creating a non-top-level window with only a titlebar
>
> I would like to create a window that has only a title bar - no
> maximize, minmize or close button. It's easy enough for a
> top-level window, but setting the window flags doesn't work
> for windows that are not top level.Can anyone point me to
> a solution?
>
>
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
> --
> 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/
>
>
>
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
> --
> 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 ]
Message 4 in thread
David Scriven wrote:
> I'd be grateful for a response - even an RTFM that points
> me in the right direction.
>
> This is a transient window created a result of actions
> within the main window - as such it only needs a title
> bar to indicate what info is being provided, and a frame
> to make it stand out from the background, but none
> of the buttons.
Start the "Qt demo". Launch the Widgets/Window Flags demo. Play around
with the Window flags until you get what you need. Then use this
combination of Window flags at creation time of your QDialog.
Hope that helps, Oliver
--
[ signature omitted ]