Saving multiple layers from QGIS to SpatiaLite database?
You can create an empty SpatiaLite database using Layer > Create Layer > New SpatiaLite Layer
. Once you've done so, it will appear in the DB Manager (an included plugin; enable from the plugin manager if it is disabled). Alternatively, if you have an existing database you would like to add layers to, add it with Layer > Add Layer > Add Spatialite Layer
(not with Add Vector Layer
). This will make the SpatiaLite database appear in the DB Manager
Once you have done either of the above, you can use the DB Manager to import any layer loaded in QGIS, of any origin, to the SpatiaLite DB.
I believe this to be a better option than using Qspatialite, as DB Manager is a core QGIS plugin and maintained by the QGIS team.
give the qspatialite plugin a try (https://plugins.qgis.org/plugins/QspatiaLite/)
(Create empty db, now you can select all your layers and add at one go. see screenshot 1)