PDA

View Full Version : Using QSqlDriver::subscribeToNotification with sqlite3



Jeffb
5th September 2018, 09:06
Hi all
I've been looking all over the web for a code example of how to use QSqlDriver::subscribeToNotification but can't find one. I know the syntax is along the lines of:
db.driver()->subscribeToNotification("anEventId");
But how do I know what "anEventId" is. Are these constants in sqlite or do I code these specific events into sqlite using Triggers or something else?
If I have to code them in sqlite, could someone give me some example code please?

Thanks heaps
Jeff

Jeffb
7th September 2018, 04:57
Here's the answer:
https://stackoverflow.com/a/52205881/4352449