<!DOCTYPE RCC><RCC version='1.0'><qresource> <file>res/file.txt</file></qresource></RCC>
TEMPLATE = appLANGUAGE = C++INCLUDEPATH += .HEADERS += mainform.h \SOURCES += main.cpp \ mainform.cppFORMS = mainformbase.uiIMAGES = images/1.png \ images/1.png \ images/icon.pngRC_FILE = project.rcRESOURCES += project.qrc
QFile file(":/res/operator.txt");if(!file.open(IO_WriteOnly)) QMessageBox::warning(this, tr("Error"), tr("Error"));else{ QTextStream in(&file); QString str; while(!in.atEnd()) QMessageBox::warning(this, tr(""), tr("%1").arg(str));}if(QFileInfo(":/res/operator.txt").exists()) QMessageBox::warning(this, tr(""), tr("Ok"));else QMessageBox::warning(this, tr(""), tr("Error"));