PDA

View Full Version : Blue Halo around QLineEdit, but not around QTextEdit



djogon
30th December 2009, 15:15
In OS X - there is a blue halo drawn around the focused control. This works fine with QLineEdit, but it does not work with QTextEdit.

I do not particularly mind one way or another, but it really should be consistent. It will confuse the user if one control does show focus while the other does not.

I can implement the focus display using styles for example, but I need to get rid of the blue halo for that.

Any advice on how to control this blue focus rect, halo?

Thanks.

axeljaeger
8th January 2010, 11:47
Use myWidget->setAttribute(Qt::WA_MacShowFocusRect, false); to disable that focus halo. Watch out what the native behaviour is. Qt should follow what Apple does. If the Qt-Application differs from the native, then it is a bug.