This is a very frustrating error message in Qt Creator: ’XYZ’ does not name a type
. This usually means that there is an error in the class XYZ
that prevents the compiler from generating the type, but there are no additional hints as to what went wrong.
Any suggestions?
I found this problem on qtcreator 3.4.1 and QT 5.4, when I replace such as
#include <QTextEdit>
with
class QTextEdit;
this problem gone.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With