[Qgis-developer] adding entry to legend view
humarco
marco.hugentobler at karto.baug.ethz.ch
Tue Jul 11 02:30:43 EDT 2006
Hi Nitin,
Currently not. In your case, i think you could put the points in a vectorlayer
and add this vector layer to the legend. It seems to me that your program
which reads from pipe is a kind of data provider (and thus could inherit from
QgsVectorDataProvider). So all you need to do is to add this provider to a
vector layer and add this layer to the legend. Like this, it would fit nicely
into the qgis layer/dataprovider philosophy. Is this right or are there
reasons why it can't be modelled like this?
Marco
Am Dienstag, 11. Juli 2006 06:03 schrieb nitin quick:
> Is it possible to add entry in legend view without usind addVectorLayer()
> and addRasterLayer from plugin.
> I am curretly reading some points from named pipe, displaying them on
> canvas as canvas items.There are multiple algo writing to fifo. I want to
> make a entry for each in legend view but i couldn't find anything in
> qgsiface.
>
>
> regrads
> quick nitin
More information about the Qgis-developer
mailing list