Qt: Align Text Center and Left using StyleSheet
c++, qt
Solution
Most likely you should write something like:
qproperty-alignment: 'AlignVCenter | AlignLeft';
qproperty-wordWrap: true;
Problem
I want to align the text in a QLabel in such a way that horizontal alignment is left and vertical alignment is center with word-wrap. Currently I am doing something like this ``` QLabel { qproperty-alignment: AlignLeft; } ``` I want to know how I can set text vertical and horizontal alignment individually.