@johnbarring: Yes, your description is much too vague. You need to post some code that shows how you are interacting with the QSystemTrayIcon instance.

This doesn't make a whole lot of sense:

However, returned value to change doesn't change. It still returns the old value every though the function that's been called has the query in it.