QSqlDatabase db = QSqlDatabase::addDatabase("QSQLITE");
db.setDatabaseName("data.db");
if (!db.open()) {
qDebug() << "Can't open a database";
}
Report::ReportInterface* report = 0;
Report::ReportEngine reportEngine;
report = reportEngine.loadReport("D:/QT/print/Report.bdrt");
if (!report) {
qDebug() << "Can't open report file";
return;
}
и вот это выводит результат!
Запускается D:\QT\print\print\release\print.exe...
"The file 'D:/QT/print/print/data.db' is not a valid Qt plugin."
"The file 'D:/QT/print/print/main.cpp' is not a valid Qt plugin."
"The file 'D:/QT/print/print/mainwindow.cpp' is not a valid Qt plugin."
"The file 'D:/QT/print/print/mainwindow.h' is not a valid Qt plugin."
"The file 'D:/QT/print/print/mainwindow.ui' is not a valid Qt plugin."
"The file 'D:/QT/print/print/Makefile' is not a valid Qt plugin."
"The file 'D:/QT/print/print/Makefile.Debug' is not a valid Qt plugin."
"The file 'D:/QT/print/print/Makefile.Release' is not a valid Qt plugin."
"The file 'D:/QT/print/print/print.exe' is not a valid Qt plugin."
"The file 'D:/QT/print/print/print.pro' is not a valid Qt plugin."
"The file 'D:/QT/print/print/print.pro.user' is not a valid Qt plugin."
"The file 'D:/QT/print/print/Report.bdrt' is not a valid Qt plugin."
"The file 'D:/QT/print/print/ui_mainwindow.h' is not a valid Qt plugin."
"Can't find StdReport"
Can't open report file
Как с этим быть