[Qt-interest] Preventing highlighting of QLineEdit

KC Jones kc at asperasoft.com
Thu Jan 14 20:24:49 CET 2010


I have a QLineEdit widget where I do not want to see any frame or
frame highlighting.  I know how to eliminate the frame, either by
calling the setFrame(false) or via style sheet.  But I have not had
any luck getting rid of the edit highlight.  I've played with the
:edit-focus pseudo state:

QLineEdit:focus { border-style: none; }

but so far nothing is working.  I know the ":focus" is the state I
want since I can set other properties and see them applied correctly.
But the fuzzy blue (Mac) highlighting is still drawn.  Any
suggestions?



More information about the Qt-interest-old mailing list