QML randomly corrupt font / text / characters
-
Hi @hobbe
Can you please explain the problem ? -
@Pradeep-P-N qml render text (not all) corrupt randomly
I inherit QQuickItem and draw QQuickTextNode in updatePaintNode function.
Then the text randomly crorrupt
Platform is Windows 10
On mac this never happened -
@hobbe said in QML randomly corrupt font / text / characters:
I inherit QQuickItem and draw QQuickTextNode in updatePaintNode function.
Then the text randomly crorrupt
Platform is Windows 10Please show the code for your
updatePaintNode()
.How do you pass text into your program?
What encoding are you using?
-
@JKSH said in QML randomly corrupt font / text / characters:
@hobbe said in QML randomly corrupt font / text / characters:
I inherit QQuickItem and draw QQuickTextNode in updatePaintNode function.
Then the text randomly crorrupt
Platform is Windows 10Please show the code for your
updatePaintNode()
.How do you pass text into your program?
What encoding are you using?
QQuickTextNode *node = static_cast<QQuickTextNode *>(oldNode); node->addTextLayout(layout->position(), layout, d->m_color, QQuickText::Normal, QColor(), QColor(), d->m_selectionColor, d->m_selectedTextColor, d->m_paragraphSelections[i].first, d->m_paragraphSelections[i].second); node->markDirty(QSGNode::DirtyGeometry); return node;
2.Texts are pass into via TextEdit
3.UTF-8 used