Maximum height of a TreeView within a TabBar

Marco Martin notmart at gmail.com
Tue Aug 3 21:01:04 CEST 2010


On Tuesday 03 August 2010, Glenn Wurster wrote:
> Greetings,
> 
> I've been attempting to develop a Plasma applet using Python.  I'm having
> an issue, however, with the height of the Plasma::TreeView being
> artificially constrained if I embed it in a Plasma::TabBar.  If I put the
> TreeView directly onto the plasma applet without the TabBar, the height of
> the TreeView expands to take up all available space in the window.  If,
> instead, I place the TreeView in a TabBar, the height of the TreeView will
> not expand past a certain point (the width does not seem similarly
> constrained).  I've tried setting the maximum height on both TabBar and
> the inner TreeView element (using setMaximumHeight) to no avail.

you can try to set the vertical size policy of the treeview to Expanding

Cheers,
Marco Martin


More information about the Plasma-devel mailing list