Hi,<br><br>I know that QGIS is able to load csv, txt and Sqlite tables (no geometry) via 'Load vector layer'.<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've tried by replacing: uri.setDataSource(' ', table, geomField, ' ', idField)   by uri.setDataSource(' ', table, ' ', ' ',  ' ') but it doesn't work...<br><br>I guess I've missed something<br>
<br>Thanks in advance,<br clear="all">Romain,<div><i><br></i></div><br>