[Interest] Efficient 2D animation in qml
furkanuzumcu at gmail.com
Mon Aug 12 05:11:39 CEST 2019
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.
On Aug 10, 2019, 09:07 -0400, Colin Worth <jlk2144 at 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.
> Interest mailing list
> Interest at qt-project.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Interest