If I have a white QTextEdit and then call textBackgroundColor I get black if the text has no background color. But logically I expect white. Once the background is set, everything works as expected. I tested it on Windows with Qt Designer C++ and PySide6. The attached example should show my problem well.