Qt 6.11 is out! See what's new in the release
blog
Multiple QTextBlocks on a single line?
General and Desktop
1
Posts
1
Posters
1.7k
Views
1
Watching
-
Is there an easy way to do this? I have a QTextEdit and I'd like to insert a series of terms as separate QTextBlocks (so I can format them separately), but whenever I call QTextCursor::insertBlock it always adds it to a new line. I need the terms to flow as regular text, but I'd like to logically access them separately. Is there a way to do this without providing a custom document layout? The QAbstractDocumentLayout class seems horrendously complex (or at least poorly documented).