On Mon, Oct 10, 2011 at 8:17 AM, romain riviere
<[email protected]> wrote:
> Hi,
> I know how to Load a spatiaLite spatial table into QGIS,
> but I can't find how to load a non spatial table (ie simple SQLite table).
> I've read the pyqgis cookbook, and QGs API, but didn't find any answer.
This should work:
vlayer = QgsVectorLayer('dbname="/data/gis/test.sqlite"
table="mytable"', 'mytable', 'spatialite')
Martin
_______________________________________________
Qgis-developer mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/qgis-developer