Re: [Qgis-developer] Troubles with QgsAttributeTableView in a plugin

2014-01-20 Thread Matthias Kuhn
Hi Radosław, Things like this are most likely introduced by loosing the reference to objects which then get garbage collected. Try assigning the objects to local variables. I.e. change "model" to "self.model", "filterModel" to "self.filterModel" etc. Hope this helps Matthias On Sun 19 Jan

[Qgis-developer] Troubles with QgsAttributeTableView in a plugin

2014-01-19 Thread Radosław Pasiok
Hello Devs! I would like to ask you for help with using a QgsAttributeTableView in a plugin. I am using QGIS-master on Ubuntu 12.04 but the same applies to QGIS-dev from OSGeo4W. There is no problem when I use QGIS python console: from PyQt4.QtCore import * from PyQt4.QtGui import * from qgis.co