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 well. Matthias 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 > [email protected] > http://lists.osgeo.org/mailman/listinfo/qgis-developer _______________________________________________ Qgis-developer mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/qgis-developer
