<br><br><div class="gmail_quote">2010/4/30 Jesús Fernández <span dir="ltr"><<a href="mailto:jesusfs@gmail.com">jesusfs@gmail.com</a>></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'm developing an applet (plasmoid) using the python bindings.<br>
I use a QGraphicsLinearLayout and I add IconWidgets to it.<br>
As I'd like the applet to live either in a horizontal or vertical panel,<br>
I'm checking the orientation of the parent containment to set the orientation<br>
of the applet's layout.<br>
I'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's some spacing between them and I can't figure out how to remove it.<br>
Can someone please give me a hint?<br>
Thanks.<br>
<br>
>> 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 <<<br>
</blockquote></div><br>CC'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'm not sure about this as there is someone else more expert than me in this and in Python bindings; so let'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>