Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.0.0
-
None
Description
An image embedded in a Text item that causes a line to wrap will be positioned at the top of the paragraph instead of the new line. If the new line containing the images has text preceding the image it is positioned correctly. The text following the image is positioned correctly in both instances.
The code below demonstrates the issue.
import QtQuick 2.0 Item { width: 200 height: 300 Rectangle { x: txt.x y: txt.y width: txt.width height: txt.implicitHeight color: "lightsteelblue" } Text { id: txt width: 200 height: 300 anchors.centerIn: parent textFormat: Text.RichText wrapMode: Text.Wrap text: "this is some wrapped text that wraps at the image <img src=\"http://qt-project.org/_/images/qt_logo.png\"/> then wraps again after a bit" } }