[PyQt] QComboBox: Icons: Error

Chris Giles chris.g.27 at gmail.com
Thu Jul 17 01:45:13 BST 2008

My application has a QComboBox that contains icons on each line.  It worked
fine with (Py)Qt 4.3.  I'm now using Qt 4.4.0 and PyQt 4.4.2.  I receive the
following error at runtime:

Traceback (most recent call last):
  File "./Q7Z.pyw", line 14, in <module>
    import      Main
  File "Main.py", line 52, in <module>
line 758, in setupUi
line 804, in retranslateUi
"7-Zip", None, QtGui.QApplication.UnicodeUTF8))
NameError: global name 'icon' is not defined

Related issues have been raised both on this mailing list and here:
Will this problem be fixed in time for the PyQt 4.4.3 release?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20080717/ccc47e6f/attachment.html

More information about the PyQt mailing list