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), d35e367e4 (dev), 5c7569454 (6.8), 8275f5e8a (6.7), adde115d7 (dev), 87d10e851 (6.8)

    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

          For Gerrit Dashboard: QTBUG-35688
          # Subject Branch Project Status CR V

          Activity

            People

              srutledg Shawn Rutledge
              jpnurmi J-P Nurmi
              Votes:
              3 Vote for this issue
              Watchers:
              14 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: