Problem with X-Windows System.
-
Dear all,
@void MainWindow::openFile(){
OpenDialog *mydialog = new OpenDialog(this);
mydialog->resize(600,400);
mydialog->show();
if (mydialog->exec() == QDialog::Accepted){
QFile file(mydialog->fileName);
.........
//Read the file
........
}
file.close();
}@
It works well in Windows & Mac. But in Linux(Ubuntu), it close MainWindow(parent) although Read file process is successful.I don't why & how can I fix that
Thanks