[Qt-interest] QDialog behavior

Tony Thompson Tony.Thompson at stone-ware.com
Thu May 7 16:20:04 CEST 2009


On Thu, 2009-05-07 at 11:16 +0200, Denis Dzyubenko wrote:
> Tony Thompson wrote:
> > If I do setFixedSize( size() ), that totally screws up the window on
> > Linux.  This is how I get frameless dialog.  If I remove that, I get a
> > dialog with a title bar and system menu.  I am not asking for the system
> > menu so I am not sure why that is there either.
> 
> please try with the latest Qt 4.5.1 and if it still doesn't work for you 
> file a bug report through the bug tracker.
> 
> However on Linux your might not get exactly what you what depending on 
> the window manager you use.

I am using 4.5.1, at least that is what Qt Creator is reporting.

> > I would like the dialog set so it can't be resized.  Should I be doing
> > it differently?  setFixedSize() seems to do exactly that but it screws
> > up everything.
> > 
> > My other issue is still on the Mac with specifying those flags I get
> > grayed out buttons (close, min, max).
> 
> please file a bug report about it - though I am not sure what should be 
> the correct behavior - why is it better to hide buttons than just gray 
> them out ?
> 
Actually, I am technically OK with having the buttons there and
disabled.  If I don't initialize the dialog with any flags, the buttons
don't show up at all.  If I use the flags, they show up but are
disabled.  That seems backward.  If I don't specify any flags, I would
expect the buttons to show.  Since I am specifying the window flags,
there are hints to add the buttons and I didn't ask for them to be
there.  That seems to be how it acts on the other platforms, just not on
OS X.

Tony
 
This message (and any associated files) is intended only for the 
use of the individual or entity to which it is addressed and may 
contain information that is confidential, subject to copyright or
constitutes a trade secret. If you are not the intended recipient 
you are hereby notified that any dissemination, copying or 
distribution of this message, or files associated with this message, 
is strictly prohibited. If you have received this message in error, 
please notify us immediately by replying to the message and deleting 
it from your computer. Messages sent to and from Stoneware, Inc.
may be monitored.




More information about the Qt-interest-old mailing list