Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Multiple QTextBlocks in same paragraph
Adamxxk last edited by
I found a previous question on here from 2012, which no one answered.
I'm curious it is possible to have a paragraph made up of multiple QTextBlocks when viewed in QTextEdit (by subclassing QTextBlock, changing QAbstractTextDocumentLayout, anything). I would really like to be able to "track" and add userData to individual sentences, and even sequences of words, inside a single paragraph. Even if that means having to track paragraph markers within a QTextBlock's userData.