-
Bug
-
Resolution: Done
-
P2: Important
-
5.2.1
-
None
-
Kubuntu 12.04 64bit
When using a QML TextEdit in RichText mode and having nested table-tags,
the TextEdit control is not properly repainted when entering text.
Steps to reproduce:
1.) create new QtQuick2 project in QtCreator
2.) set following content in main.qml:
import QtQuick 2.0
Rectangle {
width: 360
height: 360
TextEdit {
textFormat: TextEdit.RichText
text: '<body><table><tr><td><table><tr><td >testtext</td></tr></table>not rendered correctly</td></tr></table></body>'
anchors.fill: parent
}
}
3.) run program
4.) move cursor to "testtext" in the TextEdit control
press enter and the line "not rendered correctly" appears two times.
( see images before.png and after.png)
After resizing the window, everything is rendered correctly again.
Workaround:
if I change main.qml as follows, rendering works fine:
import QtQuick 2.0
Rectangle {
width: 360
height: 360
TextEdit {
textFormat: TextEdit.RichText
text: '<body><table><tr><td><table><tr><td >testtext</td></tr></table>not rendered correctly</td></tr></table></body>'
anchors.fill: parent
onTextChanged: {
width++;
width--;
}
}
}