Hi,<div>I am populating my table view using a QSqlRelationalTableModel,</div><div>It all works well and the application is working- Untill someone leaves it </div><div>open overnight and tries to view/update data next morning. The tabe view does </div>
<div>not show anything, can&#39;t add/delete/update ,no error messages are produced. I </div><div>suspect  connection to the database is getting timed out. How can  I prevent </div><div>it from timing out or how to detect if the connection behind the model is down </div>
<div>I tried </div><div>&quot;if  connection.open():&quot;</div><div>before executing the Query, without success</div><div><br></div><div>Any help is much appreciated.<br clear="all"><br>-- <br>--<br><br>Regards,<br><br>Anil K Thankappan<br>
<br>
</div>