[Interest] how can I call qRegisterMetaType?
Nye
kshegunov at gmail.com
Mon May 16 12:28:09 CEST 2016
>
> Should I just do it from the constructor?
That would be what I usually do. Still there's overhead of repeatedly
registering the same type, so if you have a better place on hand (a root
object/entry point of your application/library) that'd be better.
> Would I need to worry about thread safety then, if my class was created in
> a bunch of threads at the same time while this is going on?
>
qRegisterMetaType is thread-safe.
Kind regards,
Konstantin.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20160516/b9ded530/attachment.html>
More information about the Interest
mailing list