Re: [Interest] saving data using QtSql during shutdown

2013-12-19 Thread Francisco Ares
Hi. Found it: QApplication::commitData(QSessionManager * manager) All you have to do is derive QApplication with the above function explicitly doing what you need to do at the system shutdown, replace QApplication at main() for this new derived class, and that's it. I've tested under Linux, Qt

Re: [Interest] saving data using QtSql during shutdown

2013-11-11 Thread Thiago Macieira
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,

Re: [Interest] saving data using QtSql during shutdown

2013-11-11 Thread Emmanuel Bourgerie
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Is the closeEvent called when the application shuts down? That would be my first guess. Emmanuel Bourgerie Web developer Dublin, Ireland (+353) 8 144 5278 http://bourgerie.fr/ Confus avec "BEGIN PGP SIGNED MESSAGE" ? http://weusepgp.info/fr Confused

[Interest] saving data using QtSql during shutdown

2013-11-11 Thread Francisco Ares
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