[Development] qt5 modules in namespaces
Thiago Macieira
thiago.macieira at intel.com
Tue Jan 3 14:31:45 CET 2012
On Friday, 30 de December de 2011 14.55.55, Denis Dzyubenko wrote:
> In qt5 modules we have exactly the same problem as in namespaced-Qt
> itself. Hence my suggestion to solve it in the same way - I would like
> to be able to re-use that QT_BEGIN_MOC_NAMESPACE for qt5 modules, to
> be able to redefine it to use both Qt namespace and my modules'
> namespace.
I suggest you use your namespace at the end of your .cpp file and #include the
moc output. This improves the compilation time, makes better code and reduces
the need for weird changes in moc.
--
Thiago Macieira - thiago.macieira (AT) intel.com
Software Architect - Intel Open Source Technology Center
Intel Sweden AB - Registration Number: 556189-6027
Knarrarnäsgatan 15, 164 40 Kista, Stockholm, Sweden
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.qt-project.org/pipermail/development/attachments/20120103/5aa1ef05/attachment.sig>
More information about the Development
mailing list