<div dir="ltr">Hi,<div><br></div><div>One way is to create your own map tool. The add feature tool inherits QgsMapToolDigitizeFeature, which will contains already a lot. You can have a look at the cpp code of QgsMapToolAddFeature and replicate in Python. But I guess you might find some good examples by searching a bit on the web.</div><div><br></div><div>Otherwise, you can still access the rubber band by accessing the rubberband (which is a QGraphicsItem) by listing items of the map canvas (which is a QGraphicsView). Without knowing much more, that wouldn't be my preferred approach. It sounds a bit clumsy both in terms of code and UX.</div><div><br></div><div>Denis</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le lun. 18 nov. 2019 à 06:37, 5Nap <<a href="mailto:olimpiysky@gmail.com">olimpiysky@gmail.com</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello!<br>
I'm trying to find a way to modify rubber band, created by AddFeature<br>
action.<br>
The idea is to continue editing by another mapping tool with option to<br>
switch between built-in tools (add new feature, construct arc from "shape<br>
digitizing toolbar" and so on) and my own custom tool.<br>
<br>
Is there such possibility?<br>
<br>
The only way I've found so far creates new rubber band without accesing the<br>
existing one. <br>
<br>
I'm using python,  QGIS3.10 <br>
<br>
<br>
<br>
--<br>
Sent from: <a href="http://osgeo-org.1560.x6.nabble.com/QGIS-Developer-f4099106.html" rel="noreferrer" target="_blank">http://osgeo-org.1560.x6.nabble.com/QGIS-Developer-f4099106.html</a><br>
_______________________________________________<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>