The Shape type may also be useful in your case. I have not used QSvgRenderer or QQuickPaintedItem, but Shape provides a convenient API with GPU acceleration.
Regards, Furkan Üzümcü On Aug 10, 2019, 09:07 -0400, Colin Worth <jlk2...@gmail.com>, 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@qt-project.org > https://lists.qt-project.org/listinfo/interest
_______________________________________________ Interest mailing list Interest@qt-project.org https://lists.qt-project.org/listinfo/interest