[Interest] how can I call qRegisterMetaType?

Michael Sué sue at sf.mpg.de
Mon May 23 10:18:29 CEST 2016


Hi,

-----Original Message-----
From: Interest [mailto:interest-bounces+sue=sf.mpg.de at qt-project.org] On Behalf Of Hamish Moffatt
Sent: Tuesday, May 17, 2016 3:42 AM
To: interest at qt-project.org
Subject: Re: [Interest] how can I call qRegisterMetaType?

Maybe you will get better results with an enum class:

enum MyEnum { EA, EB, EC };
-> 
enum class MyEnum { EA, EB, EC };

Then the compiler also differentiates between enum lists of different classes with the same name. But it sure will require you to always use the full name: "ClassName::EnumTypeName".

- Michael.




More information about the Interest mailing list