Hi Ivan, <br><br><div class="gmail_quote">On Sun, Sep 12, 2010 at 11:26 PM, Ivan Mincik <span dir="ltr">&lt;<a href="mailto:ivan.mincik@gmail.com">ivan.mincik@gmail.com</a>&gt;</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 &quot;/home/ivo/.qgis/python/plugins/tablemanager/tableManager_plugin.py&quot;,<br>
line 62, in run<br>
    dialoga = tableManager_gui.TableManager(self.iface)<br>
  File &quot;/home/ivo/.qgis/python/plugins/tablemanager/tableManager_gui.py&quot;,<br>
line 146, in __init__<br>
    self.setupUi(self)<br>
  File &quot;/home/ivo/.qgis/python/plugins/tablemanager/tableManagerUi.py&quot;,<br>
line 31, in setupUi<br>
    self.progressBar.setProperty(&quot;value&quot;, 0)<br>
TypeError: argument 2 of QObject.setProperty() has an invalid type<br>
<br>
Changing line 31 to &#39;self.progressBar.setProperty(&quot;value&quot;,<br>
QtCore.QVariant(0))&#39; is fixing the problem.<br>
File  &#39;tableManagerUi.py&#39; is generated, so I have no idea what to<br>
change in &#39;ui&#39; file to get it working correctly with older Qt<br>
versions.<br></blockquote><div>AFAIK  it&#39;s a pyuic4 bug.<br><br>In GdalTools I fixed this issue by resetting the &quot;value&quot; 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>&lt;property name=&quot;value&quot;&gt;</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">   &lt;number&gt;0&lt;/number&gt;</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">&lt;/property&gt;</span><br><br style="font-family: courier new,monospace;">Then you&#39;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>