[PyQt] QIcon missing attributes
Zoltan Szalai
flc at freemail.hu
Fri May 7 20:33:32 BST 2010
Phil Thompson wrote:
> On Fri, 7 May 2010 20:00:35 +0200 (CEST), Flc Flc <flc at freemail.hu> wrote:
>> Hi,
>>
>> The class reference page of the QIcon class says it has methods like
>> fromTheme (
>>
> http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qicon.html#fromTheme
>> )
>> or themeName but they are not seem to be available:
>>
>>>>> from PyQt4.QtGui import QIcon
>>>>> QIcon.setTheme
>> Traceback (most recent call last):
>> File "<stdin>", line 1, in <module>
>> AttributeError: type object 'QIcon' has no attribute 'setTheme'
>>
>> I think the question is obvious.
>> Or am I missing something?
>>
>> Python version: 2.6.5
>> PyQt version: 4.7.3
>
> What version of Qt?
>
> Phil
>
wow, how reckless I am?
it was a version problem indeed.
sorry for the dummy question.
thx Phil!
regards
Zoltan
More information about the PyQt
mailing list