如何从 Qt Designer 中的 属性 编辑器更改 QLabels 对齐方式?

How to change a QLabels alignment from property editor in Qt Designer?

我正在尝试更改 QLabel 的对齐方式(改为 AlignRight)。是否可以从 Qt Designers 属性 编辑器中做到这一点?在我的项目中,我无法编辑该字段!为什么?

只要点击"alignment"它会下拉然后你可以select