QFormLayout and consistency in systemsettings kcm modules

Nick Shaforostoff shafff at ukr.net
Sat Aug 1 00:33:16 BST 2009

On Суббота 01 августа 2009 01:52:58 Jacopo De Simoi wrote:
> In fact if you pay attention, the layout in each of the preceding cases is
> slightly different from the other cases. In particular the vertical
> alignment of the label with respect to the widget on its right is messed
> up; the text fields do not align correctly, they are a few pixels off, it
> seems that the label and the widget are Top aligned... At first I thought
> it was some issue with the qt-style I am hacking with, but the problem
> indeed is visible in all qt styles. Is there any clever flag to can pass
> the QFormLayout to make it align stuff consistenly with the other layouts?
> Otherwise, does anybody have any objections if I turn all QFormLayout to
> QVBoxLayout? luckily they are not that many and the other way it looks much
> better.
QFormLayout makes code more readable and flexible (because it allows us to 
express more semantically - like TeX vs Word), so please if you can do this, 
fix QFormLayout instead (in Qt itself)

The code piece in intereset would be QFormLayoutPrivate::arrangeWidgets() i 

More information about the kde-core-devel mailing list