[Interest] Rows distributed evenly in QFormLayout on MacOS

Bo Elmgreen bo.elmgreen at gmail.com
Thu Aug 9 10:06:39 CEST 2012


Hi,

No, I didn't check Apple's HIG, but thanks for the advice. I'll take a look.

Cheers,
Bo

On Mon, Aug 6, 2012 at 5:23 PM, Andreas Pakulat <apaku at gmx.de> wrote:

> Hi,
>
> On Mon, Aug 6, 2012 at 12:17 PM, Bo Elmgreen <bo.elmgreen at gmail.com>
> wrote:
> > Hi all,
> >
> > I use a QFormLayout for showing a list of settings - labels with a custom
> > slider widget - on a widget that has a fixed height. On Windows and Linux
> > the rows seem to be added, only taking up the vertical space that they
> need,
> > but on MacOS the rows are distributed evenly within the space that I
> > allocate to the parent widget. The application supports various languages
> > and in some of these, some of the labels are wrapped. This is no problem
> on
> > Windows and Linux as the wrapped labels are given a bit more space than
> the
> > other ones, but on MacOS the wrapped labels are clipped due to the even
> > distribution of the rows :-/ Does anybody have an idea as to how I could
> get
> > around this? I guess that I could try and put the form inside of a scroll
> > area, but I would prefer to avoid any scrolling.
>
> Did you check wether Apple's HIG have anything to say about such
> forms? IIRC the form-layout wsa introduced to render such forms in a
> way that best matches the platform, so it might be that this is simply
> the way forms are supposed to be done on MacOSX.
>
> This also means the solution to avoid the problem is to use a
> different layout for your widget which has the wanted behaviour also
> on MacOSX.
>
> Andreas
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20120809/c7a4e0f9/attachment.html>


More information about the Interest mailing list