I'm using SQLite in an application. I create two threads which will be writting and reading concurrently to and from the same database.

How do I manage concurrency by using the API of Qt libraries for databases?

I'm continuoslly receiving messages like: "database is locked Unable to fetch row". Is autocommit done after one-row-inserts automatically? How do I detect the "LOCKED" status?

Thanks in advance and regards,