[QGIS-Developer] QgsMapLayerComboBox add None

Ing. Pierluigi De Rosa pierluigi.derosa at gfosservices.it
Mon Jun 5 08:23:06 PDT 2017


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



More information about the QGIS-Developer mailing list