Whenever QLabels, QLineEdits, QComboBoxes, QSpinBoxes, ... are placed in a horizontal layout, the text often isn't baseline aligned.
For example: place a QLabel and a QLineEdit in a QHBoxLayout. As a result, the baseline of the text is one pixel off. For other combinations of widgets this is often even worse.

On Windows, I can make them aligned by putting for example the QLineEdit in a vertical layout and adding a vertical spacer (1 pixel fixed size) or using a layoutBottomMargin of 1. But on Mac, this does not work all of the time, and sometimes more or sometimes less pixel offsets are needed for something similar. So, my problem is: how can I make these kind of widgets text baseline aligned in a consistent way both on Mac and Windows?

Thanks in advance.