skyperhh
12th October 2009, 17:40
Hello,
on Linux, Qt 4.5.2, i open a QFileDialog, select a file and at once the dialog will be closed.
No crash, get filename(s) as return value, it's equal if its a static or "normal" qfiledialog.
My problem, i added a preview to the filedialog and can't use it, because the dialog will be closed after select a file. Maybe a bug, because it's on my subclass and at the normal QFileDialog class ?
QFileDialog box;
QStringList fileNames;
box.setFileMode(QFileDialog::ExistingFile);
if (box.exec())
fileNames = box.selectedFiles();
Thank you
Bo
on Linux, Qt 4.5.2, i open a QFileDialog, select a file and at once the dialog will be closed.
No crash, get filename(s) as return value, it's equal if its a static or "normal" qfiledialog.
My problem, i added a preview to the filedialog and can't use it, because the dialog will be closed after select a file. Maybe a bug, because it's on my subclass and at the normal QFileDialog class ?
QFileDialog box;
QStringList fileNames;
box.setFileMode(QFileDialog::ExistingFile);
if (box.exec())
fileNames = box.selectedFiles();
Thank you
Bo