Qt开发,代码报错,提示:

‘Algo‘ does not name a type.

原因:两个类相互引用了头文件。

Qt报错:XXX does not name a type_qt开发

把被调用类中对调用类投文件的引用删掉即可。

参考:QT报错:does not name a type——头文件不能互相包含_伍铭的博客-CSDN博客