This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Autoresize Widgets

Tags: None
(comma "," separated)
User avatar
Kelytha
Registered Member
Posts
15
Karma
0
OS

Autoresize Widgets

Sat Dec 19, 2009 10:31 pm
I's like to ask if there is a way in Plasma to create a widget that automaticaly adujusts it's size to it's content.

Like a widget with a list, that becomes bigger if the list gets new elements, instead of displaying a scrollbar?


$DO || ! $DO; try
try: command not found
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: Autoresize Widgets

Sat Dec 19, 2009 10:53 pm
Plasma widgets are not allowed to resize themselves as far as I am aware, although they can specify a size hint, and a minimum size ( since this is what standard Qt widgets can do anyway... ). Changing the minimum size on the fly to achieve this effect would however not be a good idea, as Plasma's behaviour is undefined.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
User avatar
giucam
KDE Developer
Posts
62
Karma
1
OS

Re: Autoresize Widgets

Mon Dec 21, 2009 2:40 pm
actually a widget could call resize(newSize) when it want to, but i'm not sure it would be a good idea, 'cause a user could have other plasmoids that would be covered when it resizes itself.


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Evergrowing, Google [Bot], ourcraft