Add QtGui private headers
Solved
General and Desktop
-
Hello,
Is there a way to tellqmake
to add the private headers' locations to my include path besides writing them down manually?NOTE:
I'm well aware that this is not a public API and can change even in minor versions, and that this would break binary compatibility, I just wish to test some code against some private classes.Kind regards.
-
Hi,
It should be enough to add
QT += gui-private
to your .pro file -
You're welcome ! :)
-
how to do the same when using make build system?
I tried the following:
find_package(Qt5 COMPONENTS Core Quick QuickPrivate REQUIRED)
but QuickPrivate module is not found
-
Hopefully, once this ticket is closed, everything should be easier using CMake