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

2019-08-02 Thread Giuseppe D'Angelo via Interest
Il 31/07/19 23:22, Nikos Chantziaras ha scritto: static void constructor() __attribute__((constructor)); static void constructor(){    qmlRegisterType("ClassName", 1, 0, "ClassName"); } Maybe it helps. Thanks! I didn't know about that one. You can do that in pure C++, by the way; just

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

2019-08-02 Thread Nikos Chantziaras
(CC'ing the list as it might be of interest.) I didn't think volatile would affect the linker. That might indeed work if the llvm people think so. I'll try and run some tests when I get to it. Thanks! On 02/08/2019 09:54, Dmitriy Purgin wrote: Oh, thanks, I didn't get it from the