<div dir="ltr">Dear All,<div><br></div><div>I'm experiencing some problems with the QgsMapLayerComboBox.</div><div>I would like to filter all line and polygon layer.</div><div>Here below my code:</div><div><pre style="background-color:rgb(43,43,43);color:rgb(169,183,198);font-family:"JetBrains Mono",monospace"><span style="color:rgb(148,85,141)">self</span>.overlayLayer_ComboBox.setFilters(QgsMapLayerProxyModel.PointLayer<span style="color:rgb(204,120,50)">,</span>QgsMapLayerProxyModel.LineLayer)<br></pre><div>But I have and Error. I can add only one layer type. Even the QgsmapLayerProxyModel.<a class="gmail-reference gmail-internal" href="https://qgis.github.io/pyqgis/3.2/core/Map/QgsMapLayerProxyModel.html?highlight=qgsmaplayerproxymodel%20pointlayer#qgis.core.QgsMapLayerProxyModel.VectorLayer" title="qgis.core.QgsMapLayerProxyModel.VectorLayer" style="box-sizing:border-box;color:rgb(48,145,209);text-decoration-line:none;outline:0px;font-family:Lato,proxima-nova,"Helvetica Neue",Arial,sans-serif;font-size:14.4px;white-space:nowrap"><code class="gmail-xref gmail-py gmail-py-obj gmail-docutils gmail-literal gmail-notranslate" style="box-sizing:border-box;font-family:Consolas,"Andale Mono WT","Andale Mono","Lucida Console","Lucida Sans Typewriter","DejaVu Sans Mono","Bitstream Vera Sans Mono","Liberation Mono","Nimbus Mono L",Monaco,"Courier New",Courier,monospace;font-size:10.8px;max-width:100%;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial;border:1px solid rgb(225,228,229);padding:2px 5px;color:rgb(64,64,64);overflow-x:auto;font-weight:bold"><span class="gmail-pre" style="box-sizing:border-box">VectorLayer</span></code></a> is not suitable.</div><div>I want to show only line and polygon.</div><div>Can anyone help me?</div><div>Thank you</div><div>Pierluigi</div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr">Ing. Pierluigi De Rosa (PhD in Earth Science)</div><div dir="ltr">Contract Professor of Geographic Information System at University of Perugia<br>cel: 349755826<span><span dir="ltr">8</span></span> / fax: 075 7823038<br>skype: pierluigi.derosa </div></div></div></div></div></div></div></div>