seauniv
21st August 2013, 03:38
Hi everyone,
I'm trying to transit an Qt application from qt 4.x to qt 5, and encountered a problem:
error: QMimeSource: No such file or directory
bool QMimeSource::provides(const char* mimeType) const
{
const char* fmt;
for (int i=0; (fmt = format(i)); i++) {
if (!qstricmp(mimeType,fmt))
return true;
}
return false;
}
I search the problem in the Internet, someone says replace QMimeSource with QMimeData, but it doesn't work!
Do you have any suggestion? Thanks in advance!
I'm trying to transit an Qt application from qt 4.x to qt 5, and encountered a problem:
error: QMimeSource: No such file or directory
bool QMimeSource::provides(const char* mimeType) const
{
const char* fmt;
for (int i=0; (fmt = format(i)); i++) {
if (!qstricmp(mimeType,fmt))
return true;
}
return false;
}
I search the problem in the Internet, someone says replace QMimeSource with QMimeData, but it doesn't work!
Do you have any suggestion? Thanks in advance!