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.
mac-align-1.png
(red lines added by me)
So I tried changing the QComboBox stylesheet:
Qt Code:
lineEdit->setStyleSheet( "QLineEdit{ margin-top: 3px; }" );To copy to clipboard, switch view to plain text mode
That looks better:
mac-align-2.png
But the QLineEdit focus rectangle looks all wrong:
mac-align-3.png
(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.
Bookmarks