Details
-
Bug
-
Resolution: Won't Do
-
Not Evaluated
-
None
-
4.8.x
-
None
-
Ubuntu Kylin 16.04.1
Description
After I call QFileDialog::getSaveFileName and copy some text in the getSaveFileName dialog, the clipboard operation will be blocked for more than 10 seconds. If I set the useEventLoopWhenWaiting flag to true, the probability of occurrence will be reduced(not disappear).
The former bugs QTBUG-34614 and QTBUG-38585 seem relevant.
the main demo codes:
QString name = QFileDialog::getSaveFileName(parent, title, filePath, filters, &selectedFilter, options);
QClipboard *cb = QApplication::clipboard();
const QMimeData *pdata = cb->mimeData();
QStringList strFormatList = pdata->formats();