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

How to use all available space for scrollwidget?

Tags: None
(comma "," separated)
btux
Registered Member
Posts
4
Karma
0
OS
Hello,

I'm working on a plasma interface for kopete. See first screens here:
http://www.filedropper.com/extender1
http://www.filedropper.com/extender2

I need this scrollwidget to use all available place. I need that when it is in the panel (screen 2) and when it is opened as a popup (screen 1). But I don't want that only when the place is needed. When the contact list is shorter than the available place, I want the size of the entrys to be fixed.

I see that I have to adjust the preferredSize of the widget. But where do I get the correct size from, to which I can set the preferredSize?
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Is this plasmoid using a Layout? Layout's automatically handle the resizing of widgets, as their parents size changes.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]


Bookmarks



Who is online

Registered users: Bing [Bot], blue_bullet, Google [Bot], rockscient, Yahoo [Bot]