<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[[SOLVED] Database warning]]></title><description><![CDATA[<p dir="auto">Hi</p>
<p dir="auto">I write a small database project for my homework (Database Design). Everything is good, else than a warning: when exiting program always this warning is shown in terminal:<br />
@<br />
QSqlDatabasePrivate::removeDatabase: connection 'qt_sql_default_connection' is still in use, all queries will cease to work.<br />
@</p>
]]></description><link>https://forum.qt.io/topic/7220/solved-database-warning</link><generator>RSS for Node</generator><lastBuildDate>Wed, 07 Oct 2026 05:45:25 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/7220.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 02 Jul 2011 14:25:08 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to [SOLVED] Database warning on Sat, 02 Jul 2011 18:30:27 GMT]]></title><description><![CDATA[<p dir="auto">Thank you</p>
<p dir="auto">I ran out of scope of methods that was at least one query used in them and also deleted pointers to queries. now there is no warning :-)</p>
<p dir="auto">bq. An even simpler approach would be to simply ignore the warning. It won’t hurt you.</p>
<p dir="auto">I know, this is a homework =&gt; should look clear ;-)</p>
]]></description><link>https://forum.qt.io/post/95744</link><guid isPermaLink="true">https://forum.qt.io/post/95744</guid><dc:creator><![CDATA[soroush]]></dc:creator><pubDate>Sat, 02 Jul 2011 18:30:27 GMT</pubDate></item><item><title><![CDATA[Reply to [SOLVED] Database warning on Sat, 02 Jul 2011 18:23:55 GMT]]></title><description><![CDATA[<p dir="auto">Depends... Sometimes a delete of your database pointer is enough.</p>
<p dir="auto">We can only guess without code....</p>
<p dir="auto">A profiler like valgrind could help you.</p>
]]></description><link>https://forum.qt.io/post/95743</link><guid isPermaLink="true">https://forum.qt.io/post/95743</guid><dc:creator><![CDATA[Eddy]]></dc:creator><pubDate>Sat, 02 Jul 2011 18:23:55 GMT</pubDate></item><item><title><![CDATA[Reply to [SOLVED] Database warning on Sat, 02 Jul 2011 18:23:44 GMT]]></title><description><![CDATA[<p dir="auto">That would depend on how you designed your application. If you have your QQuery objects on the stack, make sure they run out of scope before your database does. If you have them on the heap, you can delete them before your database is destroyed. An even simpler approach would be to simply ignore the warning. It won't hurt you.</p>
]]></description><link>https://forum.qt.io/post/95742</link><guid isPermaLink="true">https://forum.qt.io/post/95742</guid><dc:creator><![CDATA[andre]]></dc:creator><pubDate>Sat, 02 Jul 2011 18:23:44 GMT</pubDate></item><item><title><![CDATA[Reply to [SOLVED] Database warning on Sat, 02 Jul 2011 16:49:16 GMT]]></title><description><![CDATA[<p dir="auto">So, what should I do? Delete all queries before exit?</p>
]]></description><link>https://forum.qt.io/post/95732</link><guid isPermaLink="true">https://forum.qt.io/post/95732</guid><dc:creator><![CDATA[soroush]]></dc:creator><pubDate>Sat, 02 Jul 2011 16:49:16 GMT</pubDate></item><item><title><![CDATA[Reply to [SOLVED] Database warning on Sat, 02 Jul 2011 16:44:18 GMT]]></title><description><![CDATA[<p dir="auto">That means that there is still a QQuery object around that references the database.</p>
]]></description><link>https://forum.qt.io/post/95730</link><guid isPermaLink="true">https://forum.qt.io/post/95730</guid><dc:creator><![CDATA[andre]]></dc:creator><pubDate>Sat, 02 Jul 2011 16:44:18 GMT</pubDate></item></channel></rss>