Text baseline alignment
-
Hi, I'm trying to align widgets so the baselines of the contained text are aligned. In the pictures below (both with normal size widgets and small widgets), you can see that the text in the QLabel and QComboBox are not baseline aligned. This happens with other widgets also, i.e. QLineEdit. I tried doing
setAlignment(Qt::AlignBaseline)
on individual widgets and also theQHBoxLayout
that contains them, but it didn't fix it. Am I doing something wrong or is this a Qt issue? Thanks.
-
There should be some pictures there. If not, here are the links:
http://i.imgur.com/hdJroT7.png
http://i.imgur.com/DFfKQWv.png -
There should be some pictures there. If not, here are the links:
http://i.imgur.com/hdJroT7.png
http://i.imgur.com/DFfKQWv.png -
@p3c0 It still doesn't align the baselines of the text. Now, the baseline for the label is below the one for the combo box.