I had the same problem as you, all attributes showed ERROR in the attribute table. I asked here:<div><br></div><div><a href="http://gis.stackexchange.com/questions/32592/how-to-open-a-spatialite-non-spatial-view-in-qgis">http://gis.stackexchange.com/questions/32592/how-to-open-a-spatialite-non-spatial-view-in-qgis</a></div>
<div><br></div><div>And was directed to the following page on <a href="http://www.gaia-gis.it/spatialite-3.0.0-BETA/spatialite-cookbook/html/sp-view.html">Spatialite Cookbook</a>. There, I found out that, for correctly open a spatialite spatial view in QGIS, I would need to have a column named <span style="background-color:rgba(248,248,248,0.6);color:rgb(68,68,68);font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;font-size:13px;line-height:17px">ROWID.</span></div>
<div><span style="background-color:rgba(248,248,248,0.6);color:rgb(68,68,68);font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;font-size:13px;line-height:17px"><br></span></div><div><span style="background-color:rgba(248,248,248,0.6);color:rgb(68,68,68);font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;font-size:13px;line-height:17px">See if it helps.</span></div>
<div><span style="background-color:rgba(248,248,248,0.6);color:rgb(68,68,68);font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;font-size:13px;line-height:17px"><br></span></div><div><span style="background-color:rgba(248,248,248,0.6);color:rgb(68,68,68);font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;font-size:13px;line-height:17px">Alexandre Neto</span></div>
<div><br><div class="gmail_quote">On Fri, Feb 22, 2013 at 10:45 AM, Samy Mezani <span dir="ltr"><<a href="mailto:samy.mezani@wanadoo.fr" target="_blank">samy.mezani@wanadoo.fr</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
le 22/02/2013 11:32, Paolo Cavallini a écrit:<div class="im"><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
-----BEGIN PGP SIGNED MESSAGE-----<br>
Hash: SHA1<br>
<br>
Il 22/02/2013 10:55, Samy Mezani ha scritto:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello all,<br>
<br>
When I load a valid spatial view from Qspatialite in QGis, I have some problems :<br>
</blockquote>
<br>
have you tried with DB Manager?<br>
</blockquote>
<br>
<br></div>
Yes, but the geometry is not loaded in QGis with DB Manager. There is "just" a data table, and the attributes window show "ERROR" too (but it's very slow and qgis use 99% of CPU).<br>
<br>
Thanks.<span class="HOEnZb"><font color="#888888"><br>
<br>
Samy</font></span><div class="HOEnZb"><div class="h5"><br>
______________________________<u></u>_________________<br>
Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org" target="_blank">Qgis-user@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">http://lists.osgeo.org/<u></u>mailman/listinfo/qgis-user</a><br>
</div></div></blockquote></div><br></div>