Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR C

QDrag and Drop

QDrag *drag = new QDrag(this);

QString text = QString("TEXT");

QMimeData *mimeData = new QMimeData();
mimeData->setText(text);

drag->setMimeData(mimeData);

Qt::DropAction dropAction = drag->exec(Qt::CopyAction|Qt::MoveAction);
Source by forum.qt.io #
 
PREVIOUS NEXT
Tagged: #QDrag #Drop
ADD COMMENT
Topic
Name
2+7 =