7 thoughts on “designing good user interfaces (1 – Label Alignment)

  1. Thanks for you work on improving and documenting good layouts.

    If you use the Qt 4.4 QFormLayout, you do not need to specify the label alignment into the source code or .ui Designer file, it will automatically conform to the guidelines of the platform.

    For “native” KDE (all KStyles, for example Oxygen), this will be as in the second screenshot, while on other platforms (e.g. Windows, Symbian, whatever) it might be as in the first one.

    Due to a bug in Qt, vertical alignment looks a bit odd with Oxygen right now, but it is still a good idea to use QFormLayout, as it has many other advantages.

    I hope in the next post you write about the “field growth” policy. I hate dialogs, where the spin controls are at the extreme right, just because the author decides to stretch them to the full window width. There is also a KDE HIG policy about this, but it is best to simply let QFormLayout decide about this one, too.

Comments are closed.