Answer the question
In order to leave comments, you need to log in
Qt + Firebird 2.5 - something wrong with the plugin?
I downloaded the archive from Firebird 2.5 (not embedded). I built the plugin according to the instructions , everything seems to be ok, the necessary .dlls ( andqsqlibase
) qsqlibase4
appeared.
Then I downloaded the Embedded (also, of course, 2.5) archive, got it from there fembedded.dll
(renaming it, following the instructions, to fbclient.dll
). Ok, I'm trying to work with all this, in the project folder there is a sqldrivers folder, in which all this stuff lies and is loaded in this way:
QPluginLoader loader;
loader.setFileName("..\\folder1\\folder2\\sqldrivers");
qDebug() << loader.load();
QMessageBox::information(0,"",QString::number(loader.load()));
qDebug() << loader.errorString();
source_database = QSqlDatabase::addDatabase("QIBASE");
source_database.setDatabaseName("./test.fdb");
source_database.setUserName("SYSDBA");
source_database.setPassword("masterkey");
"Driver not loaded!"
QStringList sdrivers = QSqlDatabase::drivers();
//output all avalible drivers
for(int i = 0; i< sdrivers.size();i++)
qDebug()<<sdrivers[i];
"QIBASE" "QSQLITE" "QODBC3" "QODBC" "QPSQL7" "QPSQL"
Answer the question
In order to leave comments, you need to log in
As a rule, such troubles arise due to inattentive reading https://qt-project.org/doc/qt-5.0/qtdoc/deployment...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question