Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Performance issue of QQuickPaintedItem
I am developing a custom QML extension by QQuickPaintedItem. The document said you have to call the update() function when the appearance is changed, so I call it every 33ms (I am making a video player component, but it also said the update() function "will trigger a repaint of the whole scene."
So, if I create multiple video player components in the QML, it will cause lots of repainting, and it make the performance worse. Any suggesstion for me? thanks!
aabc last edited by
What is QQuickPaintedItem ?
The QQuickPaintedItem class provides a way to use the QPainter API in the QML Scene Graph.
lgeyer last edited by
QtMultimediaKit (which is part of the QtMobility APIs) already offers a QML Video element. Maybe this is what you are looking for.
Thanks for your suggestion. I replace QQuickPaintedItem with QQuickItem and solve the performance issue now. And I found VideoOutput in QtMultimedia is a good solution, too.