QtCipherSqlitePlugin
QtCipherSqlitePlugin copied to clipboard
Can't compile on MacOS/iOS with Qt 6.5.1
There issues when compiling it with 6.5.1
It also doesn't work for me on 6.5 (windows), I use 6.4.3 to compile.
Just follow this:
Q_DECLARE_OPAQUE_POINTER(sqlite3*)
Q_DECLARE_METATYPE(sqlite3*)
Q_DECLARE_OPAQUE_POINTER(sqlite3_stmt*)
Q_DECLARE_METATYPE(sqlite3_stmt*)
Why?
It's already in code in sqlitecipher.cpp
Q_DECLARE_METATYPE(sqlite3*) Q_DECLARE_METATYPE(sqlite3_stmt*) #if (QT_VERSION >= 0x050000) Q_DECLARE_OPAQUE_POINTER(sqlite3*) Q_DECLARE_OPAQUE_POINTER(sqlite3_stmt*) #endif
just because the source of this plugin was origin from qt4/qt5 qsqliteplugin,in qt6,it looks like you should declare opaque pointer before delcare metatype,that is the key point,sorry for my poor english😂