Hi Ivan, <br><br><div class="gmail_quote">On Sun, Sep 12, 2010 at 11:26 PM, Ivan Mincik <span dir="ltr"><<a href="mailto:ivan.mincik@gmail.com">ivan.mincik@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi,<br>
when trying to run QGIS Table Manager on Debian Lenny (Qt 4.4.3) it is<br>
crashing with following error:<br>
<br>
Traceback (most recent call last):<br>
File "/home/ivo/.qgis/python/plugins/tablemanager/tableManager_plugin.py",<br>
line 62, in run<br>
dialoga = tableManager_gui.TableManager(self.iface)<br>
File "/home/ivo/.qgis/python/plugins/tablemanager/tableManager_gui.py",<br>
line 146, in __init__<br>
self.setupUi(self)<br>
File "/home/ivo/.qgis/python/plugins/tablemanager/tableManagerUi.py",<br>
line 31, in setupUi<br>
self.progressBar.setProperty("value", 0)<br>
TypeError: argument 2 of QObject.setProperty() has an invalid type<br>
<br>
Changing line 31 to 'self.progressBar.setProperty("value",<br>
QtCore.QVariant(0))' is fixing the problem.<br>
File 'tableManagerUi.py' is generated, so I have no idea what to<br>
change in 'ui' file to get it working correctly with older Qt<br>
versions.<br></blockquote><div>AFAIK it's a pyuic4 bug.<br><br>In GdalTools I fixed this issue by resetting the "value" property of <br>progressBars and spinBoxes to the default value in the .ui files (you <br>
can use QtDesigner or remove the following lines from your .ui file)<br><span style="font-family: courier new,monospace;"><br><property name="value"></span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> <number>0</number></span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"></property></span><br><br style="font-family: courier new,monospace;">Then you'll set the default value by code (i.e. in the constructor)<br><br>Cheers.<br><br>
</div>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br>
Ivan<br>
_______________________________________________<br>
Qgis-developer mailing list<br>
<a href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Giuseppe Sucameli<br>