[Interest] Best way to QObject-wrap simple objects
tony at rightsoft.com.au
Wed Feb 20 00:13:27 CET 2013
> Sent: Wednesday, 20 February 2013 12:19 AM
> Hello List!
> Sometimes I have a simple class, maybe a POD, that I want to pump through
> a queued signal-slot connection. As I understand it, I need a QObject to
> that. So I wrap my class in QObject.
You can pass pointers to the POD without doing anything else:
void my_signal(POD *data);
If it really must be POD by value, then use Samuel's approach.
More information about the Interest