devbean / QtCipherSqlitePlugin

A Qt plugin for cipher SQLite.
http://qtciphersqliteplugin.galaxyworld.org
GNU Lesser General Public License v2.1
392 stars 159 forks source link

Plugin doesn't work on Qt 5.14 but works ok Qt 5.13.2 #33

Open Monsterovich opened 4 years ago

Monsterovich commented 4 years ago

The driver is not loaded for some reason.

W libprotox_armeabi-v7a.so: QSqlDatabase: SQLITECIPHER driver not loaded
W libprotox_armeabi-v7a.so: QSqlDatabase: available drivers: QSQLITE
Monsterovich commented 4 years ago

The driver is not registered automatically so I made a workaround.

    QSqlDatabase::registerSqlDriver("SQLCIPHER", new QSqlDriverCreator<SQLiteCipherDriver>);
    qDebug() << QSqlDatabase::drivers();
D         : ("QSQLITE", "SQLCIPHER")
devbean commented 4 years ago

Please checkout branch release/1.3 to see if it works on Qt 5.14. I compiled it with Qt 5.14 and all unit tests works.