Details
-
User Story
-
Resolution: Fixed
-
P2: Important
-
5.2.0, 5.13.2, 6.3
-
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
- relates to
-
QTBUG-103246 Qt should have a QIo like what KIO is. But much much better
- Open
-
QTBUG-35760 Crash during application shutdown, in freetype
- Closed
-
QTBUG-108146 move remote resource loading from Qt Quick to QtCore
- Reported
-
QTBUG-90211 Qt 6.1 API Change Review
- Closed
-
QTBUG-92208 QUrlResourceProvider API needs to be fixed
- Closed
-
QTBUG-25116 Qt 5 to-do in QTextDocument
- Closed
-
QTBUG-81022 Text editor example contradicts QQuickTextDocument's documentation
- Closed
-
QTBUG-126267 QQuickTextDocument::setTextDocument disables TextEdit
- Closed
- mentioned in
-
Page Loading...
For Gerrit Dashboard: QTBUG-35688 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
441004,3 | Cache resources loaded from QTextDocument::defaultResourceProvider | dev | qt/qtbase | Status: NEW | 0 | 0 |