[Qt-interest] Preventing highlighting of QLineEdit
KC Jones
kc at asperasoft.com
Fri Jan 15 20:38:03 CET 2010
Thanks. Sounds like a much better solution.
On Fri, Jan 15, 2010 at 1:27 AM, Ulf-Alexander v.
Ceumern-Lindenstjerna <ceumern at vrmagic.com> wrote:
> If I read this right you use QLabels to paint some form of decoration around you QLineEdit? Why not use a style sheet to customize your QLineEdit altogether?
>
> e.g.:
>
> QLineEdit {
> border-image: url(:/le.png) 12;
> border: 10px transparent;
> }
> /* focus indicator for line edits */
> QLineEdit::focus {
> border-image: url(:/le_focus.png) 12;
> }
>
> This way you can control the look of your line edit in both (focus/non focus) states.
>
> Cheers, Ulf
More information about the Qt-interest-old
mailing list