[Qgis-developer] QgsAttributeTableModel.setRequest in Python

Matthias Kuhn matthias.kuhn at gmx.ch
Mon Jan 20 14:08:05 PST 2014

Hi Radek,

There is the QgsAttributeTableFilterModel which is a proxy model to be 
applied in front of the QgsAttributeTableModel, which allows you to 
dynamically apply filters, while the request set to the table model 
itself is rather static. With this one you can set the filter mode to 
ShowFilteredList and set a list of feature ids (setFilteredFeatures) 
which are to be shown.

But the setting the request should become part of the public API as 


On Mon 20 Jan 2014 22:38:09 CET, Radosław Pasiok wrote:
> Hello Devs!
> I am trying to populate QgsAttributeTableView with some features that
> meet a request in Python (QGIS-master).
> My first try was to use
> QgsAttributeTableModel.setRequest(QgsFeatureRequest) but it is not yet
> implemented in Python bindings as I see in [1].
> I would like to kindly ask if there are some plans for the
> implementation soon? Or is there an other way to filter features for
> QgsAttributeTableView ?
> Thank you for any information!
> Radek
> [1]
> https://github.com/qgis/QGIS/blob/master/python/gui/attributetable/qgsattributetablemodel.sip
> --
> Używam wolnego oprogramowania:
> http://www.gnu.org/philosophy/philosophy.pl.html
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-developer

More information about the Qgis-developer mailing list