template struct foo {}; Q_DECLARE_METATYPE(foo) int bar(foo);