[PyQt] Attribute 'swap' is missing - e.g. QIcon

Phil Thompson phil at riverbankcomputing.com
Tue Jul 17 09:39:04 BST 2012


On Tue, 17 Jul 2012 10:24:47 +0200, Michael Hartung
<michael at infinite-drive.com> wrote:
> Hi,
> 
> After switching to 4.9.4 I can use 'swap' e.g. with QIcon on MacOSX:
> 
> self.__majorQIcon.swap(QtGui.QIcon(iconPath))
> 
> Before this attribute was not available on MacOSX and on Linux whereas 
> it works on Windows all the time.
> 
> Updating to 4.9.4 did not help on Linux.
> 
> An explanation would be nice...
> 
> Thanks in advance!
> Michael

Maybe your version of Qt on Linux is too old.

Phil


More information about the PyQt mailing list