<div dir="ltr">Yes it's possible with the QGIS 3 API only:<div><a href="https://qgis.org/api/classQgsMapLayerComboBox.html#a3f38873230e93d6bc7d73a50671a9c5e" target="_blank">https://qgis.org/api/<wbr>classQgsMapLayerComboBox.html#<wbr>a3f38873230e93d6bc7d73a50671a9<wbr>c5e</a><br></div><div class="gmail_extra"><br><div class="gmail_quote">2017-06-05 23:23 GMT+08:00 Ing. Pierluigi De Rosa <span dir="ltr"><<a href="mailto:pierluigi.derosa@gfosservices.it" target="_blank">pierluigi.derosa@<wbr>gfosservices.it</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Dear all,<br>
<br>
into the QgsMapLayerComboBox is there a simple way to add the --None--<br>
option for the list of layer?<br>
Normally the widget is already full of all layer but I need also the<br>
option: no layer<br>
<br>
What is the best solution to do that?<br>
Thanks<br>
Pierluigi<br>
<br>
--<br>
--<br>
<br>
<br>
<br>
<br>
<br>
______________________________<wbr>______________________________<wbr>____________<br>
Ing. Pierluigi De Rosa<br>
PhD in Scienze della terra<br>
Professore a contratto di G.I.S. presso Universit√† di Perugia<br>
<br>
Studio Associato GFOSSERVICES<br>
<br>
Presso CAMPUS Via F.lli Cairoli 24 - 06127 Perugia (PG)<br>
fax: <a href="tel:075%207823038" value="+33757823038" target="_blank">075 7823038</a><br>
cel: 3497558268<br>
web: <a href="http://www.gfosservices.it" rel="noreferrer" target="_blank">www.gfosservices.it</a><br>
skype: pierluigi.derosa<br>
<br>
______________________________<wbr>_________________<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/mailma<wbr>n/listinfo/qgis-developer</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailma<wbr>n/listinfo/qgis-developer</a></blockquote></div><br></div></div>