Project

General

Profile

How to change the splitter-position of a resizable WBoxLayout?

Added by Stefan Bn about 1 year ago

Hello,

the splitter/border-position of a resizable WBoxLayout can be set initially using

void setResizable (int index, bool enabled=true, const WLength & **initialSize** =WLength::Auto)

Is there a way to change this by software later after the Layout has been created?

I didn't find any way, trying to set the size using setHeight/setMinimumSize/resize of the the particular item inside the Layout nor is there a method in WBoxLayout to do this.
Maybe via JavaScript? What is the corresponding HTML widget that reflects the splitter/border and it's position?

I would like to resize my layout dynamically depending on certain user actions.

Thanks,
Stefan