[Interest] QTextEdit and Style sheets

Bo Thorsen bo at fioniasoftware.dk
Wed Mar 14 09:04:57 CET 2012

Den 13-03-2012 17:26, Christoph Feck skrev:
> You have to change the background of the viewport() instead, otherwise
> the viewport will render its background over that of the QTextEdit
> object. So it is not a bug, but expected behavior. Using setPalette()
> also affects the viewport, because the palette attribute is inherited
> by children.

Graham reported that Windows and Linux behaved differently with the same 
code, so there is a bug here. But what it is of course depends on which 
of them has the intended behaviour.

Bo Thorsen,
Fionia Software.


Expert Qt and C++ developer for hire
Contact me if you need expert Qt help

More information about the Interest mailing list