[PyKDE] changing background color of QTextEdit/QLineEdit
mark at qtrac.eu
Mon Jan 15 15:50:04 GMT 2007
On Mon 15-Jan-07 13:00, Steven James Samuel Stapleton wrote:
> I have severa QTextEdits and QLineEdits in my application, and I want to
> make them more friendly for the user.
> (1) I would like to slightly alter the color of the focused edit object
> (it's very helpful for visually impared users such as myself).
> (2) I want to make bad input sections red.
> To do this, I need to know how to (a) get the background color used and (b)
> set the background color used.
> Any suggestions?
> -Jim Stapleton
If you're using PyQt4 you could try the new style sheet stuff. See:
Mark Summerfield, Qtrac Ltd., www.qtrac.eu
More information about the PyQt