Re: [QGIS-Developer] QgsMapLayerComboBox add None
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 >: > > 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@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 ___ QGIS-Developer mailing list QGIS-Developer@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [QGIS-Developer] QgsMapLayerComboBox add None
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: > 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@lists.osgeo.org > List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer > Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer ___ QGIS-Developer mailing list QGIS-Developer@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
[QGIS-Developer] QgsMapLayerComboBox add None
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@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer