PDA

View Full Version : QQuickItem draw text in C++



ecspertiza
21st November 2016, 14:21
Hi. Im use QQuickItem and updatePaintNode for pain my item in qml, because QQuickPainterItem is wery slow, to slow it is not posible to use. But i need draw text in QQuickItem how i can do this?

anda_skoa
21st November 2016, 14:55
When QQuickPaintedItem is to slow because of a high updated frequency, the next easiest way is usually to use QQuickFrameBufferObject as you can still use normal OpenGL to render.
If you really need to go to the scene graph API then I would suggest to look how the standard Text element does it.

Cheers,
_