How do I include QMetaObjectBuilder in my QT 5.12 project?
Unsolved
General and Desktop
-
Hey folks, hopefully this has a simple answer. Basically, I'm porting in some code that uses the QMetaObjectBuilder class, and for the life of me I can't figure out which header contains it. I've tried
<private/qmetaobjectbuilder_p.h>
and various iterations on that, but no dice.
-
@feistykittykat I found it with
#include <QtCore\5.12.2\QtCore\private\qmetaobjectbuilder_p.h>
but I'm not sure that this is the right way to go, since now I'm getting an error from that file that
#include <QtCore/private/qglobal_p.h>
cannot be found. Is there a less janky way of including this successfully?
-
Hi,
AFAIR, you need to add QT += core-private to your .pro file.