[Interest] Is it safe to call qRegisterMetaType() before main()?

Nikos Chantziaras realnc at gmail.com
Wed Jul 31 23:22:52 CEST 2019


On 29/07/2019 23:50, Tomas Konir wrote:
> I'm using C constructor attribute with no problems.
> Code like below at each class cpp file.
> 
> static void constructor() __attribute__((constructor));
> static void constructor(){
>     qmlRegisterType<ClassName>("ClassName", 1, 0, "ClassName");
> }
> 
> Maybe it helps.

Thanks! I didn't know about that one.



More information about the Interest mailing list