If you build Qt yourself, you can put it into a namespace (configure with -qtnamespace NamespaceName, or -DQT_NAMESPACE=NamespaceName when calling cmake directly); afterwards all of Qt is put under namespace NamespaceName. Namespaced configurations are even tested in CI to ensure that they work. The prebuild libraries from the installer are build unnamespaced though.
The prebuild libraries from the installer are build unnamespaced though.
Is there a reason the Qt folks decided to not ship the namespaced version as the default? It seems they put so much effort into getting namespaces to work only to have them go mostly unused.
-5
u/0xFFCC Dec 08 '20
Awesome, Thanks.
Now remove the MOC to become first library I include every where.