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

2019-07-25 Thread Thiago Macieira
On Wednesday, 24 July 2019 09:05:02 PDT Nikos Chantziaras wrote: > On 24/07/2019 17:23, Thiago Macieira wrote: > > On Tuesday, 23 July 2019 07:27:27 PDT Nikos Chantziaras wrote: > >> Ugh. Having the call happen on every object creation sounds even uglier. > >> It seems it's best to roll our own. Pr

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

2019-07-24 Thread Nikos Chantziaras
On 24/07/2019 17:23, Thiago Macieira wrote: On Tuesday, 23 July 2019 07:27:27 PDT Nikos Chantziaras wrote: Ugh. Having the call happen on every object creation sounds even uglier. It seems it's best to roll our own. Probably a lazily initialized global static object that you can add functors to

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

2019-07-24 Thread Thiago Macieira
On Tuesday, 23 July 2019 07:27:27 PDT Nikos Chantziaras wrote: > Ugh. Having the call happen on every object creation sounds even uglier. > It seems it's best to roll our own. Probably a lazily initialized global > static object that you can add functors to before main() and then run > all functors

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

2019-07-23 Thread Hamish Moffatt
On 24/7/19 9:45 am, Hamish Moffatt wrote: On 24/7/19 12:27 am, Nikos Chantziaras wrote: Ugh. Having the call happen on every object creation sounds even uglier. It seems it's best to roll our own. Probably a lazily initialized global static object that you can add functors to before main() and

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

2019-07-23 Thread Hamish Moffatt
On 24/7/19 12:27 am, Nikos Chantziaras wrote: Ugh. Having the call happen on every object creation sounds even uglier. It seems it's best to roll our own. Probably a lazily initialized global static object that you can add functors to before main() and then run all functors of that object in ma

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

2019-07-23 Thread Nikos Chantziaras
On 23/07/2019 04:53, Thiago Macieira wrote: On Monday, 22 July 2019 16:15:05 PDT Hamish Moffatt wrote: On 22/7/19 10:56 pm, Nikos Chantziaras wrote: In order to avoid calling qRegisterMetaType() in main() (with the possibility of forgetting to do so,) I instead call it before the program enters

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

2019-07-22 Thread Thiago Macieira
On Monday, 22 July 2019 16:15:05 PDT Hamish Moffatt wrote: > On 22/7/19 10:56 pm, Nikos Chantziaras wrote: > > In order to avoid calling qRegisterMetaType() in main() (with the > > possibility of forgetting to do so,) I instead call it before the > > program enters main(), in the implementation fil

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

2019-07-22 Thread Hamish Moffatt
On 22/7/19 10:56 pm, Nikos Chantziaras wrote: In order to avoid calling qRegisterMetaType() in main() (with the possibility of forgetting to do so,) I instead call it before the program enters main(), in the implementation file of whoever is the owner of the type. There's several ways to do thi

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

2019-07-22 Thread Nikos Chantziaras
Spam detection software, running on the system "mx.qt-project.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. C