Widget with dimmable LED's?



  • I would like something that visualises a value 0-100% by varying light intensity of for instance a virtual LED in a Qt program I'm making.

    I found some few LED widgets that could be used to just turn a LED on or off, but does anybody know one that can be dimmed?


  • Lifetime Qt Champion

    Hi,

    I don't know any out of the box widget doing that bug one way to do it would be to use two pixmaps, one with the LED full bright and another on top which you will use to darken the luminosity by varying it opacity.

    Hope it helps


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.