[Qt-interest] qRegisterMetaType and namespaces

Girish Ramakrishnan girish at forwardbias.in
Fri Sep 4 14:14:59 CEST 2009


Andre Somers wrote:
> Girish Ramakrishnan wrote:
>> Hi Andre,
>> Have you tried
>> qRegisterMetaType<SelectionPolicyFlags>("SelectionPolicyFlags"); ?
>>
>>   
> Thanks, Girish! I had not tried that variation before, and it works :-)
> Great.
> 
> Next up: figuring out where and how to use the Q_FLAGS macro to make the
> meta property system work with this flag...
> 

Welcome to namespace/metatype hell :)

Your variant of the function is also meant to work, except that it all
depends on how you declared the types in Q_PROPERTY, signals and slots
(whether you prefixed the namespace in the typenames or not).

Girish



More information about the Qt-interest-old mailing list