QFile file(":/file/UserAgreement.html");
if(!file.open(QFile::ReadOnly | QFile::Text))
QMessageBox::information(NULL, QStringLiteral("Prompt"),
QStringLiteral("Cannot open user agreement file"));
QTextStream textStream(&file);
ui->textBrowser->setHtml(textStream.readAll());
.