Hi

I have added a custom Q_PROPERTY like this:

Q_PROPERTY( bool isTalking READ isTalking WRITE setIsTalking )

bool _isTalking;

public:
MyClass(QWidget *parent );
~MyClass();

bool isTalking() const {return _isTalking;}
void setIsTalking(bool newIsTalking){_isTalking = newIsTalking;}

Then from my style sheet file I want to change the background color of a QTreeWidgetItem based on this Q_PROPERTY like this:

QTreeWidget#activeCalls::item:isTalking{
background: green;
}

However this has no effect. Using a normal property on the QTreeWidget like this works though:
QTreeWidget#activeCalls::item:selected{
background: grey;
}

So the Widget is named correctly but I do not think the item is updated based on the value of my cusomt Q_PROPERTY. How can I make sure the Widget is updated when my property changes so the correct stylesheet is applied dynamically.