PDA

View Full Version : error: QMimeSource: No such file or directory



seauniv
21st August 2013, 04: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!

ChrisW67
21st August 2013, 06:31
QMimeData has existed for quite some time (before Qt5) and its use is described in the Drag and drop docs.

If you want more help you will need to define "it" and "doesn't work".