Is there a way to listen changes in QSharedMemory chunk?
Is there a way to listen changes in QSharedMemory chunk?
not that I am aware of, you can probably subclass and add that functionality.
In the lock method make a snapshot of the data, and in unlock, compare it, and send a signal or an event if the data has been changed.
==========================signature=============== ==================
S.O.L.I.D principles (use them!):
https://en.wikipedia.org/wiki/SOLID_...iented_design)
Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.
That would be one option yes, but is there some Qt core class or something that can be used to listen changes in memory value? Like having an observer for QSharedMemory's void* content?
Bookmarks