[Qgis-developer] Load SQLite table into QGIS

Martin Dobias wonder.sk at gmail.com
Fri Oct 14 09:42:31 EDT 2011


On Fri, Oct 14, 2011 at 10:16 AM, maaza mekuria <sailmcm at yahoo.com> wrote:
> I was able to create the spatialite geometry/geometryless tables outside QGIS and now what I would want is to be able to insert data in C++ into tables with and without geometry.
>
> Any ideas?

Load the table to QGIS (i.e. create a QgsVectorLayer - even for
geometryless table) and then use layer.dataProvider().addFeatures( ...
) method.

Martin


More information about the Qgis-developer mailing list