@benlau said:
Finally , I can not find any way to fix with QQuickPaintedItem. I just changed to use QQuickItem.
Hi, thank you for your response. Since you used QQuickItem instead, did you used updatePaintNode() in painting and didn't used QPainter?
Can you please provide me a simple code in implementing QQuickItem?
Actually, I tried creating rectangles using QSGGoemetryNode however i can't find any example on how to draw text using QSG without using QPainter.
Sorry i'm still new to integrating c++ in QML. TIA.