[Python] Paste formatted data from QTextEdit to a .odt file

Discussão em 'Python' iniciado por Stack, Fevereiro 13, 2025.

  1. Stack

    Stack Membro Participativo

    I have a simple editor written around QTextEdit. I can copy rich text from a .odt file to the editor but when I copy data from said editor that is formatted (font family, size and color have been changed) and paste it to the .odt file, the formatting is ignored. Is there a similar setting to acceptRichText() when it comes to copying selected data to the clipboard?

    Continue reading...

Compartilhe esta Página