In my application, I have a QTextEdit. It works just fine when I write normally into it but when I copy / paste text from my IDE ( as an example - in my case, pycharm in dark mode ) into it, the QTextEdit also takes the color and background of the text.
This is the normal appearance :
This is what happens when I copy paste from my IDE :
When the color is changed, the next writing inputs will keep the same colors until the next copy / paste.
How can I avoid the QTextEdit having anything else than the default colors ( black text, white background ) ?

