[Interest] Qt drag 'n drop indicator
Michael Sué
sue at sf.mpg.de
Sun May 14 23:48:04 CEST 2017
Hi,
Just guessing: plus sign or not may have to do with which files your app accepts in the dragEnterEvent i.e. CopyAction (plus-sign) or MoveAction (no plus-sign).
void Class::dragEnterEvent(QDragEnterEvent *event)
{
if (event->mimeData()->hasUrls() && (event->proposedAction() & Qt::CopyAction))
event->acceptProposedAction();
else
event->ignore();
}
and/or dragMoveEvent and/or dropEvent.
Best, Michael.
More information about the Interest
mailing list