[Development] QFlags Zero handling

Thiago Macieira thiago.macieira at intel.com
Sat Jan 21 17:28:43 CET 2017

On sábado, 21 de janeiro de 2017 17:10:04 PST Olivier Goffart wrote:
> > I mentioned there that Q_NO_TYPESAFE_FLAGS is broken. [...]
> > The define could be removed from qflags.h. Perhaps something could be
> > changed in qnamespace.h to allow the code to compile instead (and make the
> > enum meta objects not available), but it doesn't seem worth it.
> Yes, Q_NO_TYPESAFE_FLAGS is broken, as are most of the Q_NO_XXX.
> I guess it could be removed, since QFlags does not have runtime cost, there
> is no point of keeping it, even for qt lite.

Agreed on qflags.

For the other flags, we've agreed to keep them around even if we know they're 
broken. Someone may want them and may want them enough to submit fixes for the 
build issues.

Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center

More information about the Development mailing list