我希望在QLabel中对齐文本,使得水平对齐保留,垂直对齐以自动换行为中心.目前我正在做这样的事情
QLabel
{
qproperty-alignment: AlignLeft;
}
Run Code Online (Sandbox Code Playgroud)
我想知道如何单独设置文本垂直和水平对齐.
你最有可能写下这样的东西:
qproperty-alignment: 'AlignVCenter | AlignLeft';
qproperty-wordWrap: true;
Run Code Online (Sandbox Code Playgroud)