On sábado, 5 de janeiro de 2013 00.50.45, Jan Kundrát wrote:
> On Wednesday, 2 January 2013 21:04:13 CEST, Stephen Kelly wrote:
> > So unless you're deliberately creating a typedef registration (and even in
> > that case, be careful), omit the string and you don't have to
> > think about it
> > anymore.
>
> Looks like I cannot register a pointer to a namespaced class through that
> overload.
>
> I've tried these:
>
> - qRegisterMetatype<NS::Class*>();
> - using namespace NS; qRegisterMetaType<Class*>();
> - namespace NS { void reg() { qRegisterMetaType<Class*>(); } } NS::reg();
> - typedef NS::Class Class; qRegisterMetaType<Class*>();

Why don't they work?

>
> None of them work, though. The only one which works for me is this one:
>
> - qRegisterMetaType<NS::Class*>("Class*");

This one looks wrong. It's missing the namespace name.

--
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
Interest mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to