Ok, the example speaks for itself. Here's a workaround:
{
QDropEvent drop
(event
->pos
(), Qt
::MoveAction, event
->mimeData
(),
event->mouseButtons(), Qt::ShiftModifier, event->type()); // <-- Qt::ShiftModifier is important
}
void TextEdit::dropEvent(QDropEvent *event)
{
QDropEvent drop(event->pos(), Qt::MoveAction, event->mimeData(),
event->mouseButtons(), Qt::ShiftModifier, event->type()); // <-- Qt::ShiftModifier is important
QTextEdit::dropEvent(&drop);
}
To copy to clipboard, switch view to plain text mode
Bookmarks