Hi Glen,

The old Status indicator had a Qt Quick Controls v 1 dependency which of course 
is now deprecated so this could be a reason why it didn't "make the leap".

I had some trouble a few years ago with it when doing some iOS porting with 
regards to that older dependency.

Seeing as it is a visual only control and has no special C++ backend or 
annoying private implementation, it was pretty simple to make my own "extras" 
module and add it back as my own shared module. You would of course be able to 
do the same, making it as pretty as you like with effects or use photo 
realistic images or just some simple concentric "circular Rectangles" whose 
colour may be configured to whatever.

One idea is to abstract the status to the color. For example having an 
enumeration for Error, Warning, Success etc and then internally choose how that 
affects the drawing. Then your external API can use the enumeration only. That 
way, you can start with some rectangles and then upgrade to nicer visuals later 
without harming your code.

There are many ways to do it. The limit is only your imagination.

Hope that helps,

Mike


________________________________
From: Interest <interest-boun...@qt-project.org> on behalf of Glen Mabey 
<gma...@gmail.com>
Sent: Tuesday, October 3, 2023 1:29:54 AM
To: interest@qt-project.org <interest@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.   
_______________________________________________
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest

Reply via email to