<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/4.6.6">
</HEAD>
<BODY>
Thanks<BR>
<BR>
good to know.<BR>
<BR>
Pierluigi<BR>
<BR>
Il giorno mar, 06/06/2017 alle 00.23 +0800, Etienne Trimaille ha scritto:
<BLOCKQUOTE TYPE=CITE>
    Yes it's possible with the QGIS 3 API only:
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <A HREF="https://qgis.org/api/classQgsMapLayerComboBox.html#a3f38873230e93d6bc7d73a50671a9c5e">https://qgis.org/api/</A><A HREF="https://qgis.org/api/classQgsMapLayerComboBox.html#a3f38873230e93d6bc7d73a50671a9c5e">classQgsMapLayerComboBox.html#</A><A HREF="https://qgis.org/api/classQgsMapLayerComboBox.html#a3f38873230e93d6bc7d73a50671a9c5e">a3f38873230e93d6bc7d73a50671a9</A><A HREF="https://qgis.org/api/classQgsMapLayerComboBox.html#a3f38873230e93d6bc7d73a50671a9c5e">c5e</A><BR>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    2017-06-05 23:23 GMT+08:00 Ing. Pierluigi De Rosa <<A HREF="mailto:pierluigi.derosa@gfosservices.it">pierluigi.derosa@</A><A HREF="mailto:pierluigi.derosa@gfosservices.it">gfosservices.it</A>>:<BR>
    <BLOCKQUOTE>
        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>
        ________________________________________________________________________<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">075 7823038</A><BR>
        cel: 3497558268<BR>
        web: <A HREF="http://www.gfosservices.it">www.gfosservices.it</A><BR>
        skype: pierluigi.derosa<BR>
        <BR>
        _______________________________________________<BR>
        QGIS-Developer mailing list<BR>
        <A HREF="mailto:QGIS-Developer@lists.osgeo.org">QGIS-Developer@lists.osgeo.org</A><BR>
        List info: <A HREF="https://lists.osgeo.org/mailman/listinfo/qgis-developer">https://lists.osgeo.org/mailma</A><A HREF="https://lists.osgeo.org/mailman/listinfo/qgis-developer">n/listinfo/qgis-developer</A><BR>
        Unsubscribe: <A HREF="https://lists.osgeo.org/mailman/listinfo/qgis-developer">https://lists.osgeo.org/mailma</A><A HREF="https://lists.osgeo.org/mailman/listinfo/qgis-developer">n/listinfo/qgis-developer</A>
    </BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BR>
    <BR>
</BLOCKQUOTE>
<BR>
<TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
-- <BR>
<TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
-- <BR>
<BR>
<BR>
<BR>
<BR>
<H4>
<TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
<DIV ALIGN=center>
<HR ALIGN="center">
</DIV>
<H6>
<B><FONT SIZE="1"><FONT COLOR="#993300">Ing. Pierluigi De Rosa </FONT></FONT></B>
</H6>
<B><FONT SIZE="1"><FONT COLOR="#993300">PhD in Scienze della terra </FONT></FONT></B><BR>
<B><FONT SIZE="1"><FONT COLOR="#993300">Professore a contratto di G.I.S. presso Università di Perugia</FONT></FONT></B><BR>
<BR>
<B><FONT SIZE="1"><FONT COLOR="#993300">Studio Associato GFOSSERVICES</FONT></FONT></B><BR>
                <IMG SRC="cid:1496762281.16437.1.camel@pierluigi-Lenovo-U41-70" WIDTH="117" ALIGN="bottom" BORDER="0"><BR>
<B><FONT SIZE="1"><FONT COLOR="#993300">Presso CAMPUS Via F.lli Cairoli 24 - 06127 Perugia (PG)</FONT></FONT></B> 
<H6>
<B><FONT SIZE="1"><FONT COLOR="#993300">fax: 075 7823038</FONT></FONT></B><BR>
<B><FONT SIZE="1"><FONT COLOR="#993300">cel: 3497558268</FONT></FONT></B><BR>
<B><FONT SIZE="1"><FONT COLOR="#993300">web</FONT></FONT></B><B><FONT SIZE="1">: <A HREF="http://www.gfosservices.com/index.php?option=com_content&view=article&id=21&Itemid=21&lang=it">www.gfosservices.it</A></FONT></B><BR>
<B><FONT SIZE="1"><FONT COLOR="#993300">skype: pierluigi.derosa</FONT></FONT></B>
</H6>
</TD>
</TR>
</TABLE>
</H4>
</TD>
</TR>
</TABLE>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>