Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Add QtGui private headers
Is there a way to tell
qmaketo add the private headers' locations to my include path besides writing them down manually?
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.
It should be enough to add
QT += gui-privateto your .pro file
It worked like a charm. Many thanks!
You're welcome ! :)
mescalinum last edited by
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
VRonin last edited by
Hopefully, once this ticket is closed, everything should be easier using CMake