调整PYQT5设计器中的标签文本大小
我目前正在PYQT5 Designer中制作GUI应用程序,并且在标签和PushButtons的文字中遇到问题,以调整标签或PushButtons的大小。我已经能够使用Pyqt5 Designer的布局功能将PushButtons和标签与窗口进行调整大小,但只是无法调整文本大小。
谢谢! 肯
I'm currently making a GUI application in PyQt5 Designer and I'm having problems getting the text of labels and pushbuttons to resize with the labels or pushbuttons. I've been able to get the pushbuttons and labels to resize with the window using PyQt5 Designer's layout feature, but just can't get the text to resize.
Thanks!
Ky
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
也许是不良的UX设计,但我一直这样做。我的旧眼睛希望一切都大。我的诀窍是将字体大小命令添加到主窗口的重新启动。这是一个最小示例
Python代码:
UI文件(resize.ui):
Maybe it's bad UX design, but I do this all the time. My old eyes want everything to be big. My trick is to add font size commands to the resizeEvent of the main window. Here is a minimal example
Python code:
ui file (resize.ui):