SQLite plugin is not packaged with Qt 6.4.2
The issue is possibly related to #133
directory 'sqldrivers' is missing after successful build within 'usr/plugins' of target directory, which makes running App unable to load database and produce the error: 'Qt QSqlDatabase driver not loaded'
Workaround is manually create 'sqldrivers' directory and copy libqsqlite.so into it.
Please provide a build log, e.g., a link to your CI job.
Edit: Should be deployed already for Qt 6, see https://github.com/linuxdeploy/linuxdeploy-plugin-qt/blob/master/src/qt-modules.h#L116.
Clearly linuxdeploy doesn't detect the libQtSql6. Looks like a bug. I'll have to try and reproduce this.
I see where the issue is coming from. Why the hell is your application not linked against libQt6Sql in the first place? linuxdeploy-plugin-qt relies on linuxdeploy to initially deploy all Qt dependency libraries. Then, it just ldds the binaries in your AppDir to detect which libraries it needs to deploy.
A second run of linuxdeploy with the Qt plugin should work around the problem. But I'd like to know where the libQt6Sql dependency has come from. Maybe you could try to run linuxdeploy without the Qt plugin, then use ldd to verify that nothing links to libQt6Sql.
A really weird bug.