Layout and spacing

Cédric Bellegarde gnumdk at gmail.com
Sat Mar 6 18:31:04 CET 2010


Hello,

on the attached screenshot, you will see an horizontal layout with buttons and 
a LineEdit.

What i want is buttons on the left and LineEdit on the right.

The only solution i see is calculate layout size, and items size and do:
layout.setItemSpacing (LastButtonIndex, (layoutWidth - ItemsWidth))

Am i right, is there a simpler solution?

Thanks.

Cédric
-------------- next part --------------
A non-text attachment was scrubbed...
Name: plasmaSpacing.png
Type: image/png
Size: 25486 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/plasma-devel/attachments/20100306/b092c830/attachment-0001.png 


More information about the Plasma-devel mailing list