June 1, 2012

diro diro
Lab Rat
38 posts

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!

4 replies

June 3, 2012

aabc aabc
Hobby Entomologist
257 posts

What is QQuickPaintedItem ?

June 3, 2012

diro diro
Lab Rat
38 posts

http://doc-snapshot.qt-project.org/5.0/qquickpainteditem.html
The QQuickPaintedItem class provides a way to use the QPainter API in the QML Scene Graph.

June 5, 2012

Lukas Geyer Lukas Geyer
Dinosaur Breeder
2074 posts

QtMultimediaKit (which is part of the QtMobility APIs) already offers a QML Video element. Maybe this is what you are looking for.

June 5, 2012

diro diro
Lab Rat
38 posts

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.

 
  ‹‹ [SOLVED] Create qml object in C++ setting a parent      Poor text/font anti-aliasing on Symbian device ››

You must log in to post a reply. Not a member yet? Register here!