Looking for Advisory on ActivityBar Size Policy

Aaron J. Seigo aseigo at kde.org
Wed Nov 16 08:39:54 UTC 2011


On Wednesday, November 16, 2011 01:00:33 David Narvaez wrote:
> sense, what's the correct QSizePolicy combination between tab
> bars,layouts an applets to get it working that way?

set a preferredSize on the applet that reflects the preferredSize of the 
contents and it should behave as requested (growing and shrinking). the panel 
will give it as much room as it can up to the size of the preferredSize, but 
no more.

if you want a fixed growing size, just make sure the preferredSize never gets 
smaller. the applet may still be given less room (it's only a preferredSize, 
after all) but if at all possible, it will get the room it requests.

-- 
Aaron J. Seigo
humru othro a kohnu se
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA  EE75 D6B7 2EB1 A7F1 DB43

KDE core developer sponsored by Qt Development Frameworks
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20111116/4c90c035/attachment.sig>


More information about the Plasma-devel mailing list