Hi all,
I require a multiline text widget that allows to edit parts of it while keeping the rest of the text ineditable; a kind of enhanced QTextEdit. Think of Qt Creator's CppEditor in refactor/rename mode, without synchronizing multiple occurrences, but simultaneous markup of editable text fragments.
Maybe this sketch helps to clarify:
As indicated, an editable fragment should possibly line wrap, though this feature may be dispensable.readonly readonly readonly [inline editable] readonly
readonly readonly readonly readonly readonly [another
inline editable] readonly readonly readonly readonly
Editable fragments should be highlighted and resize on edit as needed. The CppEditor way would be perfect.
I can't see how to accomplish this out-of-Qt's-box. Is it already provided somehow? Is there additional work available elsewhere that provides such a widget? Else, how would you approach this task if you'd implement it yourself?
Thank you for your ideas.
(I apologize for not digging into Qt Creator's source code beforehand... Looking for a shortcut. )
Bookmarks