[PyKDE] changing background color of QTextEdit/QLineEdit

Steven James Samuel Stapleton stapleton at mps.ohio-state.edu
Mon Jan 15 13:00:09 GMT 2007


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?

Thanks,
-Jim Stapleton 




More information about the PyQt mailing list