Here you are. The error is:
virtual bool QTextEdit::canInsertFromMimeData(const QMimeData*) const is protected