<br><br><div class="gmail_quote">2010/4/30 Jesús Fernández <span dir="ltr">&lt;<a href="mailto:jesusfs@gmail.com">jesusfs@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi, I&#39;m developing an applet (plasmoid) using the python bindings.<br>
I use a QGraphicsLinearLayout and I add IconWidgets to it.<br>
As I&#39;d like the applet to live either in a horizontal or vertical panel,<br>
I&#39;m checking the orientation of the parent containment to set the orientation<br>
of the applet&#39;s layout.<br>
I&#39;d like the IconWidgets to have zero (or the minimum) spacing between them,<br>
so I call setSpacing(0) on the layout.<br>
This works fine when the applet is in the desktop, ie not in a panel<br>
or in the plasmoidviewer, but when the applet is in a panel,<br>
there&#39;s some spacing between them and I can&#39;t figure out how to remove it.<br>
Can someone please give me a hint?<br>
Thanks.<br>
<br>
&gt;&gt; Visit <a href="http://mail.kde.org/mailman/listinfo/kde-devel#unsub" target="_blank">http://mail.kde.org/mailman/listinfo/kde-devel#unsub</a> to unsubscribe &lt;&lt;<br>
</blockquote></div><br>CC&#39;ing this to plasma-devel to give more visibility.<br><br>Concerning your problem you probably want to do setSpacing(0) inside the constraintsEvent but i&#39;m not sure about this as there is someone else more expert than me in this and in Python bindings; so let&#39;s wait for *them* to reply. :-)<br>
<br>Cheers<br clear="all"><br>-- <br>Alessandro Diaferia<br>KDE Developer<br>KDE e.V. member<br><br>