<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#000000">
Hi guys, I think I found a bug in pyuic4:<br>
<br>
When adding icons inside a QComboBox (using designer-qt4) and I convert
to python using pyuc4, i get this in my main_ui.py , I'm using the
latest snapshot code. PyQt-x11-gpl-4.4.3-snapshot-20080612<br>
<br>
<blockquote>from PyQt4 import QtCore, QtGui<br>
  <br>
class Ui_MainWindow(object):<br>
&nbsp;&nbsp;&nbsp; <b>def setupUi(self, MainWindow):</b><br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; .......<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <b>icon2</b> = QtGui.QIcon()<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
icon2.addPixmap(QtGui.QPixmap(":/images/sites/opensubtitles.ico"),
QtGui.QIcon.Normal, QtGui.QIcon.On)<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; ...<br>
&nbsp;<b>&nbsp;&nbsp; def retranslateUi(self, MainWindow):</b><br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; ....<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; self.comboBox.addItem(<b>icon2</b>,
QtGui.QApplication.translate("MainWindow", "OpenSubtitles.org", None,
QtGui.QApplication.UnicodeUTF8))<br>
&nbsp;&nbsp;&nbsp; ....<br>
  <br>
</blockquote>
This means that the icon2 variable dies when the setupUI method
finishes so it cannot be found inside of retranslateUI method.<br>
<br>
Attached is the .ui file<br>
<br>
Best Regards and thanks.<br>
</body>
</html>