look for my .pro file in attachment i replaced file names by comments
and i found some details on problem, that file which cause this problem have many includes and i paste
#ifndef QVARIANT_H
#define QVARIANT_H
#endif
#ifndef QVARIANT_H
#define QVARIANT_H
#endif
To copy to clipboard, switch view to plain text mode
in begin of this file and it solves problem but it not good way to solve and i try to find place where qvariant includes and found that in one of includes there is #include <QTcpSocket> and if i put this hack before it the problem would be solved. But it seems for like something wrong. Have you got any idea where is error in my way?
Added after 27 minutes:
ooooh, i find it. this project is new for me thats why hard to find some things.
I undestand that <QTcpSocket> can helps me and i try moving it across file which cause my trouble and i find problem include and problem row in it. It was define
#undef CString
#define CString std::string
#undef CString
#define CString std::string
To copy to clipboard, switch view to plain text mode
and "CString" code word is used by QVariant.
Bookmarks