Details
-
Bug
-
Resolution: Invalid
-
Not Evaluated
-
None
-
5.15, 6.0.0
-
None
Description
When I use QMimeData to set the clipboard data, the program crashes.
crash code:
QClipboard *c = QApplication::clipboard();
QMimeData d;
d.setText("aaaaaaaaa");
c->setMimeData(&d);
normal code:
QMimeData *d = new QMimeData; d->setText("aaaaaaaaa"); c->setMimeData(d);
Can QMimeData only use the new form?