如何在不使用两个标签的情况下将部分文本对齐左侧,部分文本对齐右侧
我想使用 QLabel 以这种格式显示一些数据
用户名:.....Erich Lancaster(不带点)
地点:......无论何处
有办法做到这一点吗?
I want to use QLabel
s to display some data in this format
username:.....Erich Lancaster (without dots)
Location:.......Wherever
Is there a way to do this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
似乎使用 QFormLayout 是最简单的。像这样的东西:
Seems like using the QFormLayout would be the easiest. Something like: