We have a QGridLayout which has a particular row which is arranged like so:
+---------------------------+
| | | |
| A | B | C |
| | | |
+---------------------------+
At times, the QWidget (a QLabel) denoted as 'B' is hidden. When this occurs, I want widgets 'A' and 'C' (two QButtons) to redistribute 50/50. Later I would like to place 'B' back in the flow and give them their 20/60/20'ish layout.
I've tried B->hide()
B->setVisible(false)
layout->removeWidget(B)
but in each of these cases, 'B's space is still reserved on the screen.