[Interest] replacing StatusIndicator with QML primitives

Mike Trahearn mtrahearn at topcon.com
Mon Oct 2 23:07:42 CEST 2023


You may wish to take a look at the original drawing code for inspiration. Obviously to replicate this with "modern" components would take a little thought but certainly not out of reach.

https://code.qt.io/cgit/qt/qtquickcontrols.git/tree/src/controls/Styles/Base/StatusIndicatorStyle.qml

Most of the Canvas drawing can be done with Shapes module which gives you all the circle fills and gradient stops API and the DropShadow with the new MultiEffect component.

Hope this gets you closer to what you need.

Mike

________________________________
From: Interest <interest-bounces at qt-project.org> on behalf of Glen Mabey <gmabey at gmail.com>
Sent: Tuesday, October 3, 2023 1:29:54 AM
To: interest at qt-project.org <interest at qt-project.org>
Subject: [Interest] replacing StatusIndicator with QML primitives

The "LED" StatusIndicator (from QtQuick.Extras) didn't make the leap to Qt6, oh well.

I'm sure it's not _too_ involved to implement some of those visual effects in Qt6 -- the ones that make it look more 3-dimensional and whatever dithering effect there might have been too.

Could someone please give me a hint on which Qt6 items to use for me to construct a comparable effect?

Thanks,
Glen
Confidentiality Notice: This message (including attachments) is a private communication solely for use of the intended recipient(s). If you are not the intended recipient(s) or believe you received this message in error, notify the sender immediately and then delete this message. Any other use, retention, dissemination or copying is prohibited and may be a violation of law, including the Electronic Communication Privacy Act of 1986.   
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20231002/4f9623fc/attachment.htm>


More information about the Interest mailing list