No luck:(<br><br><div class="gmail_quote">2008/12/30 Marco Martin <span dir="ltr">&lt;<a href="mailto:notmart@gmail.com">notmart@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div></div><div class="Wj3C7c">On Tuesday 30 December 2008, Dong Tiger wrote:<br>
&gt; Hi,<br>
&gt;<br>
&gt; A QGraphicsWidget is embeded into Plasma::Applet through<br>
&gt; QGraphicsLinearLayout. When this QGraphicsWidget&#39;s size changes, how to get<br>
&gt; the applet&#39;s size adjusted accordingly?<br>
&gt;<br>
&gt; The code snippet looks like:<br>
&gt;<br>
&gt; &nbsp; child = new MyGraphicsWidget(applet);<br>
&gt; &nbsp; layout = new QGraphicsLinearLayout(applet);<br>
&gt; &nbsp; layout-&gt;setSpacing(0);<br>
&gt; &nbsp; layout-&gt;addItem(child);<br>
&gt; &nbsp; applet-&gt;setLayout(layout);<br>
</div></div>does calling applet-&gt;updateGeometry() work?<br>
<br>
Cheers,<br>
<font color="#888888">Marco Martin<br>
</font><div><div></div><div class="Wj3C7c">&gt;<br>
&gt; Regards,<br>
&gt; --<br>
&gt; Tiger<br>
<br>
<br>
_______________________________________________<br>
Plasma-devel mailing list<br>
<a href="mailto:Plasma-devel@kde.org">Plasma-devel@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/plasma-devel" target="_blank">https://mail.kde.org/mailman/listinfo/plasma-devel</a><br>
</div></div></blockquote></div><br>