Custom document layout for QML Text Edit
-
Hello all,
I'm looking to experiment with QAbstractTextDocumentLayout to see if I can make some custom rendering elements for HTML and RichText objects such as QuoteBlocks as there is only basic coverage with the current subset of HTML4 (I'd like rounded corners and side line etc).
To try and play with the internals and how it works I've inherited from QTextDocumentLayout and overridden the paint functions and also set this layout to the underlying QTextDocument within my QQuickTextEdit elements in C++ but when typing into these elements the breakpoints within those overridden functions are not hit? It's like it just does not go through those paint functions?
Because of this I feel like I've taken the wrong approach, am I accessing the wrong layout to provide a custom renderer for QQuick text inputs?
Could anyone push me into the right direction?
Danke in advanced