[Interest] Best way to QObject-wrap simple objects
Tony Rietwyk
tony at rightsoft.com.au
Wed Feb 20 00:13:27 CET 2013
Hi Frank,
> 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
do
> that. So I wrap my class in QObject.
You can pass pointers to the POD without doing anything else:
signals:
void my_signal(POD *data);
If it really must be POD by value, then use Samuel's approach.
Tony.
More information about the Interest
mailing list