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

Michael Hartung michael at infinite-drive.com
Tue Jul 17 10:41:32 BST 2012


Hi Phil,

Oops, you are right. Just Qt-4.7.4 on Linux and therefore too old to swap...

But on MacOSX I had Qt-4.8.1 in my path while switching to PyQt 4.9.4 as 
an attempt to get swap running...

Anyway...
Thanks for your quick response!

Michael

Btw... I am really enjoying PyQt


Am 17.07.2012 10:39, schrieb Phil Thompson:
> 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
>

-- 
Best regards,

Michael Hartung
CEO of Infinite Drive
hartung at infinite-drive.com

http://www.infinite-drive.com/

INFINITE-DRIVE
Everybody's Individual Traffic
Worldwide


More information about the PyQt mailing list