How to adjust applet size according to its child QGraphicsWidget?

Petri Damstén petri.damsten at gmail.com
Wed Feb 25 12:21:23 CET 2009


On Wednesday 25 February 2009 12:05:52 Dong Tiger wrote:
> 2008/12/30 Alexis Ménard <menard at kde.org>
>
> > Unfortunately you can't it is a bug in Qt.
> >
> > 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.
>
> I still can't get this work even with latest Qt4.5. I'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.
>
> > As a workaround you have to manage the resize of your applet by hand when
> > the size of the layout change.
>
> 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?

Does this work?

Petri

-------------- next part --------------
A non-text attachment was scrubbed...
Name: plasma-tutorial1.cpp
Type: text/x-c++src
Size: 2238 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/plasma-devel/attachments/20090225/c389eb39/attachment.cpp 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://mail.kde.org/pipermail/plasma-devel/attachments/20090225/c389eb39/attachment.sig 


More information about the Plasma-devel mailing list