When error: XXX does not name a type XXX is prompted in QT


 
Check the error file and the variable definition for header files that contain each other!
In short, when the compiler compiles, the two header files contain each other, and recursive inclusion occurs.
 
Mutual inclusion can be resolved by the approach described in this article.


Read More: