I have a bunch of buttons in a horizontal row (i.e. in a QHBoxLayout). I want to be able to set one of those buttons "invisible" but still participate in the layout. When I do setVisible(false) it does set it invisible, but it respaces all the buttons in the QHBoxLayout. I want it to behave as if the button is still there, just not visible. I suppose in other words I simply want it to be transparent. Wondering what the best mechanism for achieving this is. Thanks!