Hi Sensei, 

In the first statement you are telling the layout to override the minimum
size when it does its calculations.  This means that the second statement is
redundant, since those values will be clobbered by the layout.  

In Qt 4.8.5 I am unable to get the minimum size to work anyway, especially
when the message text is short, and the detail text is long.  The message
box width depends only on the message text, so it appears really narrow.
The detail text is then practically useless.  The size of the box is fixed
and cannot be resized by the user to read the detail text.  

Regards, 

Tony

> -----Original Message-----
> From: interest-bounces+tony=rightsoft.com...@qt-project.org
> [mailto:interest-bounces+tony=rightsoft.com...@qt-project.org] On Behalf
> Of Sensei
> Sent: Monday, 7 April 2014 10:28 PM
> To: interest@qt-project.org
> Subject: Re: [Interest] QMessageBox default sizes
> 
> On 4/2/14, 2:32pm, Sensei wrote:
> > However, I can't set minimum sizes of the dialog with the following:
> >
> >      box_->layout()->setSizeConstraint(QLayout::SetMinimumSize);
> >      box_->setMinimumSize(400, 150);
> >
> > Could this be a problem in setting constraints before executing the
dialog?
> 
> 
> So... any hint on why I can't set my dialog size?
> 
> 
> 
> Thanks & Cheers!
> _______________________________________________
> Interest mailing list
> Interest@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest

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

Reply via email to