I'm running an event with a large number of scenes and sources, and it would be very helpful to be able to color code scene text.
I'm trying to figure out how to do so with theming, but so far have been unsuccessful. Is it possible to access item text? It seems something like this should work, but if so I'm doing it wrong. My experience with Qt and QSS is nil. I've tried many variations on this idea, but so far no joy. If anyone can point me in the right direction I'd very much appreciate it!
I'm trying to figure out how to do so with theming, but so far have been unsuccessful. Is it possible to access item text? It seems something like this should work, but if so I'm doing it wrong. My experience with Qt and QSS is nil. I've tried many variations on this idea, but so far no joy. If anyone can point me in the right direction I'd very much appreciate it!
CSS:
/* If the scene item starts with the word "Success" change the font color to green */
SceneTree::item[text^="Success"] {
color: rgb(000,255,000); /* green */
}