Coloring Alarm Messages Based on Severity in a Data grid¶
This project contains the AlarmGrid widget and two switches which trigger two different digital alarms. To color the messages of the generated alarms, a key-value converter was used on the “Text color“ property of all text columns of the data grid. The converter maps integers to colors using “{item}.Severity“ as source. Since the severity property has been set for the digital alarms, when alarms are triggered, their messages will appear in different colors in the data grid.
Scarica il progetto di esempio da qui
.