Hi,<br><br>I know that QGIS is able to load csv, txt and Sqlite tables (no geometry) via &#39;Load vector layer&#39;.<br>I wonder how to do this with pyqgis ?  (the cookbook only describe loading spatial data).<br><br>My goal is to Load a non geometric spatialite table, which is exactly the same as an sqlite table, in QGIS via python.<br>
I&#39;ve tried by replacing: uri.setDataSource(&#39; &#39;, table, geomField, &#39; &#39;, idField)   by uri.setDataSource(&#39; &#39;, table, &#39; &#39;, &#39; &#39;,  &#39; &#39;) but it doesn&#39;t work...<br><br>I guess I&#39;ve missed something<br>
<br>Thanks in advance,<br clear="all">Romain,<div><i><br></i></div><br>