I try to load (read) text file in the textEdit doing the following:

QString myFile="data/bgen.txt";
QFile file(myFile);
QTextStream stream( &myFile );
if (file.open(QFile::ReadOnly | QFile::Text))
ui->textEdit->setPlainText(file.readAll());

When i click the Button nothing happens.

i add the link of the file in the resources