以下成员源于类 QLabel are part of the Qt compatibility layer. We advise against using them in new code.
使用 setAlignment ( Qt::Alignment ) 代替。
若 alignment specifies text flags as well, use setTextFormat () to set those.