Search code examples
pythonpyqtpyqt5qtextedit

Paste without changing font


Whenever I paste text into a QTextEdit widget, it pastes without changing the font or color. Is there a flag I can set to prevent this? Couldn't find anything on here.


Solution

  • Instead of using the normal Ctrl+v/Cmd+v to paste text in, try holding shift while you paste it in.