[Qt-interest] Preventing highlighting of QLineEdit
Paul England
pengland at cmt-asia.com
Fri Jan 15 01:24:47 CET 2010
Are you dead set on using a style?
I'm assuming that setFocusPolicy( Qt::NoFocus) would get the job done.
I use it on QTableWidget all the time. I'm not sure if adding a style
will over write this or not though. The other thing is if it's editable
or not.
setReadOnly( false ) I'm pretty sure will eliminate the problem altogether,
but introduce a huge one if it's not read only. :)
KC Jones wrote:
> 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?
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
More information about the Qt-interest-old
mailing list