[Qt-interest] Sending window messages between Qt processes

Bob Hood bhood2 at comcast.net
Sat Apr 18 19:28:03 CEST 2009


Thanks, David.

However, a Windows-based D-Bus solution does not come OOTB with Qt, so
the answer would have to be "no" -- in fact, if it did, I wouldn't be
using QSharedMemory :).  I need something that comes with, and builds
directly from, Qt.  Sending user-defined messages to the main
GUI-processing loop would, I think, serve my needs rather nicely, if I
knew it could be done, and how to do it.


David Greaves wrote:
> Would d-bus suite your needs?
>
> http://lists.trolltech.com/qt-interest/2008-09/thread00290-0.html
>
> David
>
> Bob Hood wrote:
>> Is there a non-platform-specific way of posting user-defined window
>> messages between Qt GUI processes?
>>
>> I have several stand-alone applications that are exchanging data via
>> QtSharedMemory, but they are each using timers to poll the shared memory
>> segment for changes.  What I'd rather do is have a process store its
>> window id into the shared memory so that other processes can notify it
>> when data has been sent through the shared memory.  That way I can get
>> rid of the timers and polling.  However, I need this to be
>> cross-platform (Windows, Linux, Mac), so I don't want to use
>> platform-specific code.
>>
>> Any advice, or links to examples, is appreciated.  Thanks.  :)
>>
>> _______________________________________________
>> Qt-interest mailing list
>> Qt-interest at trolltech.com
>> http://lists.trolltech.com/mailman/listinfo/qt-interest
>>



More information about the Qt-interest-old mailing list