PDA

View Full Version : QSharedMemory Listening?



ManuMies
7th December 2010, 08:29
Is there a way to listen changes in QSharedMemory chunk?

high_flyer
7th December 2010, 11:26
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.

ManuMies
7th December 2010, 13:42
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?