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

QQuickTextEdit: the underlying document cannot be changed

    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

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

          Activity

            People

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

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes