[PyQt] Pyuic4 QListWidget icon problem

Phil Thompson phil at riverbankcomputing.com
Thu Jul 17 12:24:53 BST 2008


On Wed, 16 Jul 2008 06:16:32 +0200, Jan Kaluza <hanzz.k at gmail.com> wrote:
> Hello all,
> I have pyuic4 version 4.4.2 for Qt 4.4.0 and when I make output.py file 
> from widget.ui which contains QListWidget with icons then icons  in 
> output.py are defined in __init__ functions but item.setIcon is called 
> in retranslatedUi. So this can't work and I have to by hand put all 
> icon=Qtgui.QIcon(...) to the retranslateUi function.

Should be Ok with the snapshot.

Phil



More information about the PyQt mailing list