Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-35688

QQuickTextEdit: Make it possible to change the text document

    XMLWordPrintable

Details

    Description

      There is no way to change the QTextDocument instance of a QQuickTextEdit. QQuickTextDocument provides only read access to the QTextDocument instance. That is a custom QTextDocument subclass (QQuickTextDocumentWithImageResources) and therefore cannot be made interchangeable - a plain QTextDocument wouldn't work correctly with QQuickTextEdit.

      => QTextDocument should provide means for QQuickTextEdit to do the resource handling without subclassing QTextDocument.

      This is a rather big restriction for applications with multiple documents, because each document requires its own instance of QQuickTextEdit. This is not only clumsy but also very inefficient because each document, visible or not, has a view attached and thus does heavy text layouting when the content changes in the background.

      Attachments

        Issue Links

          Activity

            People

              qt.team.quick.subscriptions Qt Quick and Widgets Team
              jpnurmi J-P Nurmi
              Votes:
              2 Vote for this issue
              Watchers:
              11 Start watching this issue

              Dates

                Created:
                Updated: