<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
<DIV>
<DIV id=article167825>Hi all,<BR><BR>I created a class that derives from QGraphicsWidget.<BR>In that class I put different UI components (Plasma::IconWidget, Plasma::ToolButton).<BR><BR>These are added to a QGraphicsLinearLayout object.<BR><BR>Now when I use objects from this class I created and put them in a scrollwidget they have to much space in between them.<BR><BR>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.<BR><BR>I am searching for a way to get rid of this space-loss.<BR>I tried setContentsMargin and spacing. THis seems to work for ToolButton but not for IconWidget.<BR><BR>Maybe this has also to do with the QGraphicsLinearLayout but I am not sure.<BR><BR>Anyone an idea how I can fix this?</DIV></DIV>                                               </body>
</html>