开发者

Is it possible to scale the content of a QVBoxLayout in pyqt4?

开发者 https://www.devze.com 2023-01-14 01:35 出处:网络
couldn\'t find anything with google or search. I have some QPushButtons and QLabels in a QVBoxLayout. Now I want them to scale down. Not only the text, the hole QButton and QLabel. Is that possible?

couldn't find anything with google or search. I have some QPushButtons and QLabels in a QVBoxLayout. Now I want them to scale down. Not only the text, the hole QButton and QLabel. Is that possible? If yes, can you please tell me how or post me a link to the doc. I'm pretty sure, that there must be a way. But I think I'm sea开发者_JAVA技巧rching with the wrong words.


Not sure what you mean, but perhaps you're looking for QBoxLayout::addStretch? By the way, I recommend using Qt Designer to create your layout, PyQt4 comes with a tool called pyuic4 that creates the Python code for you. Qt Designer allows you to visually insert spacer items.

0

精彩评论

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