[PyQt] QComboBox: Icons: Error
Phil Thompson
phil at riverbankcomputing.com
Thu Jul 17 12:25:44 BST 2008
On Thu, 17 Jul 2008 10:45:13 +1000, "Chris Giles" <chris.g.27 at gmail.com>
wrote:
> 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>
> uiMain.setupUi(mwMain)
> File
>
"/media/Exchange/Programming/PyQt4/Q7Z/SVN/SourceForge/trunk/Q7Z/Source/Ui_Main.py",
> line 758, in setupUi
> self.retranslateUi(Main)
> File
>
"/media/Exchange/Programming/PyQt4/Q7Z/SVN/SourceForge/trunk/Q7Z/Source/Ui_Main.py",
> line 804, in retranslateUi
> self.cbAlgorithm.addItem(icon,QtGui.QApplication.translate("Main",
> "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:
>
http://groups.google.com/group/profitpy-discuss/browse_thread/thread/fb579a71c66fecb2.
> Will this problem be fixed in time for the PyQt 4.4.3 release?
Should be fixed in the snapshot.
Phil
More information about the PyQt
mailing list