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 http://www.fioniasoftware.dk _______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest