<div dir="ltr"><div>openFeatureForm() is what you are looking for:</div><div><br></div><div><a href="http://doc.qgis.org/api/2.18/classQgisInterface.html#a11b90f38afd09ac5e9f363933ee4a509">http://doc.qgis.org/api/2.18/classQgisInterface.html#a11b90f38afd09ac5e9f363933ee4a509</a><br></div></div><br><div class="gmail_quote"><div dir="ltr">C Hamilton <<a href="mailto:adenaculture@gmail.com">adenaculture@gmail.com</a>> escreveu no dia sexta, 17/11/2017 às 17:02:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>When a points vector layer is enabled for editing, and the "Add Feature" tool is selected, when you click on the map you get a popup dialog ("Points - Feature Attributes") that allows you to enter the vector layer attributes.</div><div><br></div><div>Is it possible to programmatically access this dialog from a plugin that is going to add a point to the map, but would like an attribute dialog to pop up for entering the attributes? I would rather make use of the existing function and not reinvent it.</div><div><br></div><div>Is there a difference between these two functions when adding a feature to a vector layer other than the first adds a single feature and the second can add multiple features?</div><div><br></div>layer.addFeature(feature)<br><div>layer.dataProvider().addFeatures([feature])<br><br></div><div><br></div><div>Thanks,</div><div><br></div><div>Calvin<br></div><br></div>
_______________________________________________<br>
QGIS-Developer mailing list<br>
<a href="mailto:QGIS-Developer@lists.osgeo.org" target="_blank">QGIS-Developer@lists.osgeo.org</a><br>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a></blockquote></div><div dir="ltr">-- <br></div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>Alexandre Neto</div><div>---------------------</div><div>@AlexNetoGeo</div><div><a href="http://sigsemgrilhetas.wordpress.com">http://sigsemgrilhetas.wordpress.com</a></div><a href="http://gisunchained.wordpress.com">http://gisunchained.wordpress.com</a><br></div></div>