<br><div class="gmail_quote">2008/12/30 Alexis Ménard <span dir="ltr">&lt;<a href="mailto:menard@kde.org">menard@kde.org</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;">
Unfortunately you can&#39;t it is a bug in Qt.<br><br>You can take a look to the task tracker of Qt Number 231114 and 211500. I guess it is what you try to solve. The fix is in 4.4 branch (so scheduled for 4.4.4) and in 4.5. </blockquote>
<div><br>I still can&#39;t get this work even with latest Qt4.5. I&#39;ve attached code of a sample plasmoid which demonstrate the problem. You are welcomed to try it out. Right click on the applet to modify its child widget size.<br>
 <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
<br>As a workaround you have to manage the resize of your applet by hand when the size of the layout change.<br><div class="gmail_quote"></div></blockquote><div>The question is how can I do it? When the embedded QGraphicsWidget need to enlarge, say from 200x200 to 400x400, how can I decide what the applet size should be?<br>
 <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="gmail_quote"><br>2008/12/30 Dong Tiger <span dir="ltr">&lt;<a href="mailto:idlecat511@gmail.com" target="_blank">idlecat511@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">Hi,<br><br>A QGraphicsWidget is embeded into Plasma::Applet through QGraphicsLinearLayout. When this QGraphicsWidget&#39;s size changes, how to get the applet&#39;s size adjusted accordingly? <br>

<br>The code snippet looks like:<br>
<br>  child = new MyGraphicsWidget(applet);<br>  layout = new QGraphicsLinearLayout(applet);<br>  layout-&gt;setSpacing(0);<br>  layout-&gt;addItem(child);<br>  applet-&gt;setLayout(layout);<br><br><br>Regards,<br>--<br>

<font color="#888888">Tiger<br>
</font><br></div></div>_______________________________________________<br>
Plasma-devel mailing list<br>
<a href="mailto:Plasma-devel@kde.org" target="_blank">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>
<br></blockquote></div><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>
<br></blockquote></div><br>