<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
</head>
<body>
<div name="messageBodySection">
<div dir="auto">The <a href="https://doc.qt.io/qt-5/qml-qtquick-shapes-shape.html">Shape</a> type may also be useful in your case. I have not used QSvgRenderer or QQuickPaintedItem, but Shape provides a convenient API with GPU acceleration.</div>
</div>
<div name="messageSignatureSection"><br />
<div class="matchFont">Regards,
<div>Furkan Üzümcü</div>
</div>
</div>
<div name="messageReplySection">On Aug 10, 2019, 09:07 -0400, Colin Worth <jlk2144@gmail.com>, wrote:<br />
<blockquote type="cite" class="spark_quote" style="margin: 5px 5px; padding-left: 10px; border-left: thin solid #1abc9c;">
<div class="ApplePlainTextBody">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.<br />
<br />
Colin</div>
_______________________________________________<br />
Interest mailing list<br />
Interest@qt-project.org<br />
https://lists.qt-project.org/listinfo/interest<br /></blockquote>
</div>
</body>
</html>