Hi,

This is the wrong list (for developers OF Qt). Moving the discussion to the right one (for developers WITH Qt).

Il 02/06/2014 14:25, Olivier Austina ha scritto:
Is there a way to listen for a database updating. I have a program and I
want to know when the database change (for insert and update event). Any
suggestion is welcome. Thank you.

Depending on the actual database you can push notifications to Qt which will be emitted as signals (see QSqlDriver::notification). For instance, with PostgreSQL you can put a NOTIFY statement in a trigger connected to your table insert/updates commands.

HTH,
--
Join us Oct 6-8 at BCC Berlin for Qt Developer Days 2014!
Giuseppe D'Angelo | giuseppe.dang...@kdab.com | Software Engineer
KDAB (UK) Ltd., a KDAB Group company
Tel. UK +44-1738-450410, Sweden (HQ) +46-563-540090
KDAB - Qt Experts - Platform-independent software solutions

Attachment: smime.p7s
Description: Firma crittografica S/MIME

_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to