[PyQt] QIcon missing attributes

Phil Thompson phil at riverbankcomputing.com
Fri May 7 19:31:36 BST 2010


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


More information about the PyQt mailing list