Error: QIODevice was not declared in this scope
Many may encounter similar errors like this. QMap does not name a type;ISOC++ forbids declaration of QThread with no type;and so on.
How to correct these?
These occur due to the fact that proper header files are not included in the header files of your project.
Just search the terms in the errors like QThread , QMap etc in Qt Assistant and find the header files;include those in your header files where the errors occur like #include<qthread.h>, #include<qmap.h> and so on.
The error QIODevice was not declared in this scope can also be alleviated by #include<qiodevice.h> in the header file.
Many may encounter similar errors like this. QMap does not name a type;ISOC++ forbids declaration of QThread with no type;and so on.
How to correct these?
These occur due to the fact that proper header files are not included in the header files of your project.
Just search the terms in the errors like QThread , QMap etc in Qt Assistant and find the header files;include those in your header files where the errors occur like #include<qthread.h>, #include<qmap.h> and so on.
The error QIODevice was not declared in this scope can also be alleviated by #include<qiodevice.h> in the header file.
No comments:
Post a Comment