Problems with QGraphicsLayout

Artur Souza(MoRpHeUz) morpheuz at openbossa.org
Fri Feb 27 12:47:12 CET 2009


On Friday 27 February 2009 08:32:31 Matthias Fuchs wrote:
> I tried QSizePolicy::Preferred, updateGeometry() on the layout, invalidate
> and adjustSize on both the labels and the layout. Maybe the order in which
> I called these methods was wrong or maybe I'm doing something stupid, it
> did not work.

Try to set the preferred size of the Plasma::Label...something like:

label->setPreferredSize(QSize(200,200));

that should solve your issue if I'm not crazy right in the morning =P

Cheers

--------------------------------------------------------------
Artur Duque de Souza
OpenBossa Research Labs
INdT - Instituto Nokia de Tecnologia
--------------------------------------------------------------
Blog: http://labs.morpheuz.eng.br/blog/
GPG: 0xDBEEAAC3 @ wwwkeys.pgp.net
--------------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 489 bytes
Desc: This is a digitally signed message part.
Url : http://mail.kde.org/pipermail/plasma-devel/attachments/20090227/139394b7/attachment.sig 


More information about the Plasma-devel mailing list