[PyKDE] PyQt4 4.0.1: Possible QTabWidget Bug

Joshua J. Kugler joshua at eeinternet.com
Mon Sep 18 19:20:21 BST 2006


On Friday 15 September 2006 02:41, Chris Giles wrote:
> I think I've uncovered a little bug in PyQt4 4.0.1.
>
> I used "Qt4 Designer" to create a small dialog, which has a QTabWidget
> whose tabs have icons next to their titles.  When I then used "pyuic4"
> to create the ".py" file for this dialog, the following lines were
> missing and the icons therefore obviously weren't displayed.  Once I
> added these lines in manually, the icons displayed correctly.
>     self.twOperations.setTabIcon(0 ,
> QtGui.QIcon(":/actions/Images/actions/ark_adddir.png"))
>     self.twOperations.setTabIcon(1 ,
> QtGui.QIcon(":/actions/Images/actions/ark_extract.png"))
>
> Can someone confirm that this is a PyQt4 bug?

Can you post the .ui file and the icon files so we can test this? :)

j

-- 
Joshua Kugler                           
Lead System Admin -- Senior Programmer
http://www.eeinternet.com
PGP Key: http://pgp.mit.edu/  ID 0xDB26D7CE
PO Box 80086 -- Fairbanks, AK 99708 -- Ph: 907-456-5581 Fax: 907-456-3111




More information about the PyQt mailing list