Hello out there,
i am trying to read from a file that the user chooses via a QFileDialog, but after that the file is not readyble...

Qt Code:
  1. file = new QFile(QFileDialog::getOpenFileName(....));
  2. if(file.isReadable() != true)
  3. {
  4. //This gets executed
  5. QMessageBox msg(QMessageBox::Information, "DEBUG", "File not readable", QMessageBox::Ok);
  6. msg.show();
  7. return;
  8. }
To copy to clipboard, switch view to plain text mode 

The interesting thing is, that the messagebox never really appears. But when I start the programm in the debugger i can see step by step that the code in the if condition gets executed and that the messgebox is not complete drawn (Just a empty MsgBox appears without text, just the "DEBUG" title).

What is going wrong?