Registered Member
|
I have an old plasmoid I wrote a few years back, which does not work with current Plasma.
After troubleshooting I come up with a test snippet below. Turns out different states have no effect(showing default gray color all the time). I tested the same code in a native Qt application written in QtCreator and it works perfectly there, changing background colors on timer event. So it somehow relates to KDE internals. I ran it in plasmoidviewer, plasmawindowed and directly on the plasma panel with the same results. Any thoughts where to look to solve this?
|
Registered Member
|
Hi, I just ran into the same issue. You can solve this by putting the part with the states (your Rectangle) into a separate file, like this:
main.qml:
SignalRect.qml:
I have no idea why it doesn't work in the main file or why it does work like this, though. |
Registered users: bartoloni, Bing [Bot], Google [Bot], Yahoo [Bot]