[Interest] QQuickTextDocument and changing internal state of QTextDocument

Cornelius Hald hald at icandy.de
Mon Jul 8 08:52:31 CEST 2013


On Fri, 2013-07-05 at 09:42 -0700, Alan Alpert wrote:
> The generic warning is there because, unfortunately, the exact
> limitations have not yet been delineated. QQuickTextEdit uses the
> document for rendering and layout, so the risk is that if you modify
> the document in a way it didn't expect then the element can enter a
> messed up state. When it comes to modifying the state, beyond adding
> text blocks or formatting hints, the implications have not been
> considered fully.
> 
> This is because adding the formatting hints was vital and known to be
> safe, so we put it out there for that usecase and we extend the
> recommended usage later when we have time.

Thanks a lot for answering. So operations that can be done by
QQuickTextEdit should be save. I think I'll start implementing and
simply report all possible crashes on the bug tracker. That way we
should soon know what the actual limitations are :)

Thanks!
Conny





More information about the Interest mailing list