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

QQuickTextEdit: Make it possible to change the text document

    XMLWordPrintable

Details

    • 7fb39a7ac (dev), 67fbc9ebc (dev)

    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

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

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

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes