I got the plug-in installed into Designer, and added several LED widgets to my UI. I have followed all the steps shown in the mini demo app that came with the download. At form load time, I set the colors like this:
ui.led1->setOnColor1(QColor(0,250,0,255));
ui.led1->setOnColor2(QColor(0,200,0,255));
ui.led1->setOffColor1(QColor(0,25,0,255));
ui.led1->setOffColor2(QColor(0,100,0,255));
Then when I want to turn on the LED I have tried these (together and separately)
ui.led1->setChecked(true);
ui.led1->toggle();
However the led on the GUI never changes color from the default given to it in the designer. The widget is definitely enabled. I don't know why I can't get it to change states.
Any help is greatly appreciated,
Doyal
Bookmarks