[Interest] saving data using QtSql during shutdown

Thiago Macieira thiago.macieira at intel.com
Mon Nov 11 13:39:40 CET 2013

On segunda-feira, 11 de novembro de 2013 10:16:18, Francisco Ares wrote:
> Hi,
> I am finishing an embedded system, using Linux and Qt as the base of the
> application that manages the system, and as a manager to a SQLite database
> for this application.  As it will be using a flash SATA module, I would not
> like to do many and frequent write operations to it.
> So, I would like to know, on a ACPI shutdown request, how to safely commit
> the remaining data to the database.

Make the ACPI shutdown request cause some noticeable change in the application 
state. For example, a SIGTERM, which you can catch and cause the data to be 

Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20131111/9d70d465/attachment.sig>

More information about the Interest mailing list