I have a horizontal layout containing a QLabel, QComboBox and QLineEdit. I looks fine on Windows. But on Mac OS X the QComboBox vertical alignment is off.


(red lines added by me)

So I tried changing the QComboBox stylesheet:

Qt Code:
  1. lineEdit->setStyleSheet( "QLineEdit{ margin-top: 3px; }" );
To copy to clipboard, switch view to plain text mode 

That looks better:


But the QLineEdit focus rectangle looks all wrong:


(Note the gap at the top of the focus rect).

I know its not a big deal. But it looks wrong and its irking me!

I am using Qt 4.8.6 on Mac OS X 10.10.