[Development] From whence cometh Q_NAMESPACE?

Matthew Woehlke mwoehlke.floss at gmail.com
Tue Jun 11 17:28:33 CEST 2019


A coworker just pointed out something interesting... the documentation
of Q_NAMESPACE is in qobject.cpp, which causes it to be documented under
the documentation for QObject. However, the *definition* comes from
qobjectdefs.h, which is roughly QMetaObject, and indeed it seems like
one should not need all of QObject to use Q_NAMESPACE. Q_ENUM and
Q_ENUM_NS are in the same boat... In fact, so is Q_GADGET and everything
that can be used with Q_GADGET.

Is this intended? Or would it make sense to move the documentation to
QMetaObject?

-- 
Matthew


More information about the Development mailing list