spacing between ui components

G VM drums_gvm at hotmail.com
Sun Aug 22 11:59:04 CEST 2010



Hi all,

I created a class that derives from QGraphicsWidget.
In that class I put different UI components (Plasma::IconWidget, Plasma::ToolButton).

These are added to a QGraphicsLinearLayout object.

Now when I use objects from this class I created and put them in a scrollwidget they have to much space in between them.

It looks like the IconWidget (from which I only use text, as it has to be clickable) gives takes more space then necessary. There is only 1 line of text and the space reserved is maybe 3 times the hight of the text itself.

I am searching for a way to get rid of this space-loss.
I tried setContentsMargin and spacing. THis seems to work for ToolButton but not for IconWidget.

Maybe this has also to do with the QGraphicsLinearLayout but I am not sure.

Anyone an idea how I can fix this? 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/plasma-devel/attachments/20100822/52a734d1/attachment.htm 


More information about the Plasma-devel mailing list