Results 1 to 3 of 3

Thread: QSharedMemory Listening?

  1. #1

    Lightbulb QSharedMemory Listening?

    Is there a way to listen changes in QSharedMemory chunk?

  2. #2
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: QSharedMemory Listening?

    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.

  3. #3

    Question Re: QSharedMemory Listening?

    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?

Similar Threads

  1. QTcpServer not listening on S60 Device
    By hasnain in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 29th November 2010, 06:27
  2. Listening for a D-Bus signal
    By fabifi in forum Qt Programming
    Replies: 1
    Last Post: 1st February 2009, 10:13
  3. Replies: 0
    Last Post: 5th May 2008, 12:43
  4. Listening events of a QAxServer module
    By juan in forum Qt Programming
    Replies: 1
    Last Post: 5th February 2008, 14:59
  5. QProcess : child process listening parent output ?
    By Nyphel in forum Qt Programming
    Replies: 16
    Last Post: 20th March 2007, 13:40

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.