Dear Denizons of QtCenterForum/Programming:

Is there any simple way to adjust the relative sizes (spans) of Widgets in a QGridLayout? I'd like to be able to increment or decrement the spans from some signal, e.g. a context menu.

I looked at the code in the DynamicLayouts example and it looks like they removed all the widgets and then added them back again readjusted. That means the window has to maintain another list of the widgets. That seems clumsy.

Any better approach known out there?

Thanks,
Max