This is more complex and produces more time for the layouter but sometimes this feature is needed.
Get current value.
QxBoxLayout.getUseAdvancedFlexAllocation();
Set new value.
QxBoxLayout.setUseAdvancedFlexAllocation(newValue);