[QGIS-Developer] QgsMapLayerComboBox add None
Etienne Trimaille
etienne.trimaille at gmail.com
Mon Jun 5 09:23:38 PDT 2017
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@
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20170606/fca6aed2/attachment.html>
More information about the QGIS-Developer
mailing list