Hmm... I&#39;m not sure what you mean by this. I simply use something like this to open the database:<div><br></div><div><pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">

<span style=" color:#000000;"><font class="Apple-style-span" face="arial"><span class="Apple-style-span" style="white-space: normal;">QSqlDatabase db = QSqlDatabase::addDatabase(&quot;QSQLITE&quot;);<br>    db.setDatabaseName(&quot;AppName&quot;);<br>

    return db.open()</span></font>;</span></pre><pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#000000;"><br></span></pre><pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">

<br></pre><br><div class="gmail_quote">On Thu, Jun 10, 2010 at 15:51, Daniil Ivanov <span dir="ltr">&lt;<a href="mailto:daniil.ivanov@gmail.com">daniil.ivanov@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

Hi Sascha!<br>
<br>
  You don&#39;t have to include libqt4-network and libqt4-sql in Depends:.<br>
  Where do you save your DB?<br>
<br>
Thanks, Daniil.<br>
<div><div></div><div class="h5"><br>
On Thu, Jun 10, 2010 at 3:47 PM, Sascha Mäkelä &lt;<a href="mailto:sascha.makela@gmail.com">sascha.makela@gmail.com</a>&gt; wrote:<br>
&gt; This how it looks now:<br>
&gt; Depends: ${shlibs:Depends}, ${misc:Depends}, libqt4-network, libqt4-sql,<br>
&gt; libqt4-sql-sqlite<br>
&gt; But still it doesn&#39;t work. Am I missing something? The app works fine when I<br>
&gt; run it in N900 from Qt Creator.<br>
&gt; Thanks for all your help,<br>
&gt; Sascha<br>
&gt;<br>
&gt; On Thu, Jun 10, 2010 at 15:12, David King &lt;<a href="mailto:davidk@openismus.com">davidk@openismus.com</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; On 2010-06-10 15:01, Sascha Mäkelä &lt;<a href="mailto:sascha.makela@gmail.com">sascha.makela@gmail.com</a>&gt; wrote:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Hi,<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; I just made a Debian package of my app. I&#39;m using QtSql in it. But for<br>
&gt;&gt;&gt; some<br>
&gt;&gt;&gt; reason when I install the package, all the SQL things don&#39;t work. My<br>
&gt;&gt;&gt; guess<br>
&gt;&gt;&gt; is that I&#39;m missing something in the Build-Depends line in the control<br>
&gt;&gt;&gt; file.<br>
&gt;&gt;&gt; How can I check what libs I need to add there and what are their correct<br>
&gt;&gt;&gt; names?<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Cheers,<br>
&gt;&gt;&gt; Sascha<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; PS. Currently it&#39;s like this: Build-Depends: dephelper (&gt;5), libqt4-dev,<br>
&gt;&gt;&gt; libqt4-network<br>
&gt;&gt;<br>
&gt;&gt; You need to add the relevant Qt SQL provider packages to the ‘Depends:’<br>
&gt;&gt; line, not the ‘Build-Depends:’ line, as the SQL providers are plugins that<br>
&gt;&gt; are not required at build time, but at runtime. You probably want<br>
&gt;&gt; libqt4-sql-mysql or libqt4-sql-sqlite in Depends, depending on which<br>
&gt;&gt; database provider you are using.<br>
&gt;&gt;<br>
&gt;&gt; --<br>
&gt;&gt; David King | <a href="http://amigadave.com/" target="_blank">http://amigadave.com/</a><br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; maemo-developers mailing list<br>
&gt;&gt; <a href="mailto:maemo-developers@maemo.org">maemo-developers@maemo.org</a><br>
&gt;&gt; <a href="https://lists.maemo.org/mailman/listinfo/maemo-developers" target="_blank">https://lists.maemo.org/mailman/listinfo/maemo-developers</a><br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; maemo-developers mailing list<br>
&gt; <a href="mailto:maemo-developers@maemo.org">maemo-developers@maemo.org</a><br>
&gt; <a href="https://lists.maemo.org/mailman/listinfo/maemo-developers" target="_blank">https://lists.maemo.org/mailman/listinfo/maemo-developers</a><br>
&gt;<br>
&gt;<br>
</div></div></blockquote></div><br></div>