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



  • I don't see any reason for that to fail. Can you paste a small, complete, compilable example?


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.