Hi, thanks for the fast reply.
The problem is that i'm not sure how to do that..
QMimeData subclass is the same of the example,
#include <QtGui>
#include "mimedata.h"
MimeData::MimeData()
}
return QMimeData::formats() <<
"application/x-delayedencoding";
}
{
emit dataRequested(mimeType);
return QMimeData::retrieveData(mimeType, type
);
}
#include <QtGui>
#include "mimedata.h"
MimeData::MimeData()
: QMimeData(){
}
QStringList MimeData::formats() const{
return QMimeData::formats() << "application/x-delayedencoding";
}
QVariant MimeData::retrieveData(const QString &mimeType, QVariant::Type type) const
{
emit dataRequested(mimeType);
return QMimeData::retrieveData(mimeType, type);
}
To copy to clipboard, switch view to plain text mode
with the only difference is
return QMimeData::formats() <<
"application/x-delayedencoding";
return QMimeData::formats() << "application/x-delayedencoding";
To copy to clipboard, switch view to plain text mode
Bookmarks