[QGIS-Developer] QgsMapLayerComboBox add None

Ing. Pierluigi De Rosa pierluigi.derosa at gfosservices.it
Tue Jun 6 08:18:01 PDT 2017


Thanks

good to know.

Pierluigi

Il giorno mar, 06/06/2017 alle 00.23 +0800, Etienne Trimaille ha
scritto:
> Yes it's possible with the QGIS 3 API only:
> 
> https://qgis.org/api/classQgsMapLayerComboBox.html#a3f38873230e93d6bc7d73a50671a9c5e
> 
> 
> 
> 2017-06-05 23:23 GMT+08:00 Ing. Pierluigi De Rosa
> <pierluigi.derosa at gfosservices.it>:
> 
>         Dear all,
>         
>         into the QgsMapLayerComboBox is there a simple way to add the
>         --None--
>         option for the list of layer?
>         Normally the widget is already full of all layer but I need
>         also the
>         option: no layer
>         
>         What is the best solution to do that?
>         Thanks
>         Pierluigi
>         
>         --
>         --
>         
>         
>         
>         
>         
>         ________________________________________________________________________
>         Ing. Pierluigi De Rosa
>         PhD in Scienze della terra
>         Professore a contratto di G.I.S. presso Università di Perugia
>         
>         Studio Associato GFOSSERVICES
>         
>         Presso CAMPUS Via F.lli Cairoli 24 - 06127 Perugia (PG)
>         fax: 075 7823038
>         cel: 3497558268
>         web: www.gfosservices.it
>         skype: pierluigi.derosa
>         
>         _______________________________________________
>         QGIS-Developer mailing list
>         QGIS-Developer at lists.osgeo.org
>         List info:
>         https://lists.osgeo.org/mailman/listinfo/qgis-developer
>         Unsubscribe:
>         https://lists.osgeo.org/mailman/listinfo/qgis-developer
> 
> 
> 

-- 
-- 





                                    
________________________________________________________________________

Ing. Pierluigi De Rosa 

PhD in Scienze della terra 
Professore a contratto di G.I.S. presso Università di Perugia

Studio Associato GFOSSERVICES
                
Presso CAMPUS Via F.lli Cairoli 24 - 06127 Perugia (PG) 

fax: 075 7823038

cel: 3497558268

web: www.gfosservices.it

skype: pierluigi.derosa
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20170606/f9f7eba7/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: logoGFOSS.png
Type: image/png
Size: 20480 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20170606/f9f7eba7/attachment-0001.png>


More information about the QGIS-Developer mailing list