开发者

PyQt4 Vertical Layout Autospacing

I am using Qt Designer to set up a simple gui for a program I am writing in which I need to display a column of radio buttons. I want to hide some of the radio buttons (not just disable them) based on whether or not their corresponding port is currently available. 开发者_开发问答 The radio buttons are in a group box with a vertical layout, so whenever I hide one of them, the rest of the buttons move apart to fill the space.

Is there any way to make it so the buttons will compress towards top of the groupbox instead of autospacing themselves?


Insert a vertical spacer below the bottom-most radio button.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜