[Interest] Efficient 2D animation in qml

Frank Mertens frank at cyblogic.de
Sun Aug 11 15:59:32 CEST 2019

Hi Colin,

check out QQuickPaintedItem and QSvgRenderer.


On 10.08.19 15:06, Colin Worth wrote:
> I need to render ~10 custom small 2D shapes to the screen as part of a UI written in QML, and then update them quickly.  The shapes represent data values coming in from 10 sensors at a high data rate (~1000 hz). The refresh rate on the screen can be lower (20-60 hz). The shapes need to change color to represent the magnitude of the data, and I’d like to put a gradient on the color fill. What is a nice efficient way to do this?  CPU usage is important because there is a 3D scene animation running in another part of the window. I’ve used the nanopaint libraries before, so this is an option. It would also be nice to have svg support for the shapes, but it’s not a deal-breaker. The app is a cross-platform desktop app (linux/Mac/windows) and can assume some GPU acceleration.
> Colin
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> https://lists.qt-project.org/listinfo/interest
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20190811/50c40d58/attachment.html>

More information about the Interest mailing list