Problem with X-Windows System.

  • Dear all,

    @void MainWindow::openFile(){
    OpenDialog *mydialog = new OpenDialog(this);
    if (mydialog->exec() == QDialog::Accepted){
    QFile file(mydialog->fileName);
    //Read the file
    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


  • 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.