Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Copying Content Between QTextDocument Instances
Lyfoen last edited by
I would like programmatically to move/copy some content - text, blocks or tables from one QTextDocument instance to another. My first idea - select text from source document, copy it, and paste to destination document. But QTextCursor doesn't have an interface for copying text elements.
What is the most concise way to solve this problem?
Hi and welcome to devnet,
AFAIK, you can use QTextBlock/QTextTable and friends for that
Hope it helps