[Qt-interest] emit custom built objects in signal/slot
Ender EREL
erelender at yahoo.com
Tue Sep 15 17:04:18 CEST 2009
From the documentation:
"Adding a Q_DECLARE_METATYPE() makes the type known to all template
based functions, including QVariant. Note that if you intend to use the
type in queued signal and slot connections or in QObject's property
system, you also have to call qRegisterMetaType() since the names are
resolved at runtime. "
and:
"Registers the type name typeName to the type T. Returns the internal ID
used by QMetaType. Any class or struct that has a public constructor, a
public copy constructor, and a public destructor can be registered. "
Further info can be found in the docs.
--
Ender EREL
More information about the Qt-interest-old
mailing list