[Qt-interest] sending data with QEvent
Bo Thorsen
bo at fioniasoftware.dk
Tue Feb 8 07:28:44 CET 2011
Den 07-02-2011 23:34, pmqt71 skrev:
> Hi,
> I'm using the method QApplication::postEvent to send events from a
> thread to another. Is it possible to associate data to the event as a
> parameter? Should I inherit from QEvent to define a custom event
> with some data members?
>
Yes, that would the way to do it with events. An easier (IMO) way is to
use queued signal-slot connections.
Bo Thorsen,
Fionia Software.
--
Expert Qt and C++ developer for hire
Contact me if you need expert Qt help
http://www.fioniasoftware.dk
More information about the Qt-interest-old
mailing list