1 | initial version |
You can obtain the Qt 5 plugin for SQLCipher that works with the SQLite driver by following these steps:
qmake -- SQLCIPHER=<path_to_sqlcipher>
make
where <path_to_sqlcipher>
is the directory where you installed SQLCipher.
After the plugin has been built, copy the resulting libqsqlitecipher.so
or libqsqlitecipher.dylib
(depending on your operating system) to the Qt plugins directory. This directory is typically located at /usr/lib/qt/plugins/sqldrivers
or /usr/local/Qt-X.X.X/plugins/sqldrivers
on Linux, /Library/Qt/plugins/sqldrivers
on macOS, and C:\Qt\X.X.X\plugins\sqldrivers
on Windows.
Verify that the plugin is installed correctly by running a Qt application that uses the SQLite driver with SQLCipher encryption.