[Qt-interest] QWidget without close button
Irfan Omair
irfan.omair.qt at gmail.com
Mon Jan 11 20:47:57 CET 2010
It does depends on the window manager,
But It can be removed with custom window flags.
setWindowFlags( Qt::CustomizeWindowHint | Qt::WindowCloseButtonHint ....)
Regards,
Irfan Omair
On Sun, Jan 10, 2010 at 4:39 PM, <anders.bakken at nokia.com> wrote:
> Depends on the platform and window manager. I think it can be done on
> windows but you'd have to experiment with the window flags. Try the
> windowflags example.
>
> --
>
> Anders
>
> On Jan 8, 2010, at 5:39 PM, "ext Malyushytsky, Alex" <alex at wai.com>
> wrote:
>
> > ASFAIK choice to display close button or not is made based on the
> > QWidget flags.
> > If widgets is a window and has title bar it will have close button.
> > I don't think you can change this.
> >
> > Regards,
> > Alex
> >
> > -----Original Message-----
> > From: qt-interest-bounces at trolltech.com [mailto:qt-interest-
> > bounces at trolltech.com] On Behalf Of Jose Victor Reynoso
> > Sent: Friday, January 08, 2010 4:58 PM
> > To: qt-interest at trolltech.com
> > Subject: [Qt-interest] QWidget without close button
> >
> > Hi forum,
> >
> > Quick question, how can I have a QWidget without a closing button in
> > the
> > right corner?
> >
> > Thanks in advance
> > Victor Reynoso
> > _______________________________________________
> > Qt-interest mailing list
> > Qt-interest at trolltech.com
> > http://lists.trolltech.com/mailman/listinfo/qt-interest
> >
> >
> > ---
> > ---
> > ---
> > ---
> > ---
> > ---
> > ---
> > ---
> > ---
> > ---
> > ---------------------------------------------------------------------
> > Weidlinger Associates, Inc. made the following annotations.
> >
> > "This message and any attachments are solely for the intended
> > recipient and may contain confidential or privileged information. If
> > you are not the intended recipient, any disclosure, copying, use, or
> > distribution of the information included in this message and any
> > attachments is prohibited. If you have received this communication
> > in error, please notify us by reply e-mail and immediately and
> > permanently delete this message and any attachments. Thank you."
> >
> > "Please consider our environment before printing this email."
> >
> > _______________________________________________
> > Qt-interest mailing list
> > Qt-interest at trolltech.com
> > http://lists.trolltech.com/mailman/listinfo/qt-interest
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100111/18949218/attachment.html
More information about the Qt-interest-old
mailing list