Label Alignment in KDE4

Andreas Pakulat apaku at gmx.de
Fri Jul 18 10:44:25 BST 2008


On 18.07.08 10:32:55, David Jarvie wrote:
> On Friday 18 July 2008 10:20 am, Aaron J. Seigo wrote:
> > On Friday 18 July 2008, David Jarvie wrote:
> >> This is the problem I have in KAlarm. Most of the dialogs don't seem
> >> suitable for the right-aligned label treatment, since there are a lot of
> >> check boxes and radio buttons with only some label/widget pairs
> >> interspersed. Are there any alignment guidelines for this case?
> >
> > iirc, checkboxes are supposed to end up like:
> >
> > Lineedit Label  [                                           ]
> >    Check Label  [  ]
> 
> What way is recommended to make a checkbox have its checkbox to the right
> of its label? Is it necessary to have a QLabel plus a QCheckBox with empty
> text?

Yeap, either that or use QFormLayout, which spares you the creation and
layouting of the label.

Andreas

-- 
You will soon forget this.




More information about the kde-core-devel mailing list