Hi,
I am building my GUI app on Qt 4.5.3. when i try to copy/insert any values in the linedit of QFileDialog, There will be a prompt of assertion failure from visual studio 2005. Could you please let me know how to fix this issue.
Here is the simple code,
QFileDialog l_pFiledDlg
(this, tr
("Open Files"), sPath, tr
("All Files (*)"));
if (l_pFiledDlg.exec()) sFilename1 = l_pFiledDlg.selectedFiles()[0];
QFileDialog l_pFiledDlg(this, tr("Open Files"), sPath, tr("All Files (*)"));
QString sFilename1;
l_pFiledDlg.setViewMode(QFileDialog::Detail);
l_pFiledDlg.setFileMode(QFileDialog::ExistingFile);
if (l_pFiledDlg.exec()) sFilename1 = l_pFiledDlg.selectedFiles()[0];
To copy to clipboard, switch view to plain text mode
I have also attached a snapshot of the assertion failure dialog.
Bookmarks