- 
    Bug 
- 
    Resolution: Won't Do
- 
    P2: Important 
- 
    6.4.0
Qmltc does not know about forward references and always tries to include all the private headers for all the types it finds.
This is a problem because a simple project using an 'Item' end up requiring linking against Qt::GuiPrivate (while without compiler it works fine just being linked to Qt::Quick, which is the expected outcome).
See attached project, reproduce by enabling the type compiler in the cmake.