[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyKDE] Shading after QListView.setSelected()
From:       "Phil Thompson" <phil () riverbankcomputing ! co ! uk>
Date:       2005-03-29 9:35:20
Message-ID: 55398.82.68.80.137.1112088920.squirrel () river-bank ! demon ! co ! uk
[Download RAW message or body]

> This question has to be something simple, but I just started programming
> PyQt.  I fill a listview with lines of text then select the first line
> with QListView.setSelected(QListView.firstChild(), True).  The
> appropriate item is shaded, but the shading is grey rather than blue.
> I figure that means that the item is not enabled.  Right so far?  So I
> tried QListView.firstChild().setEnabled(True).  I get an
> AttributeError.  The Qt documentation says that QListView.firstChild()
> returns a QListViewItem and that QListViewItem has an attribute
> setEnabled.  Is this a bug?  Using isEnabled() also produces an
> AttributeError.

Can you post a small, complete example that demonstrate's the problem -
and the text of the exception?

Phil

_______________________________________________
PyKDE mailing list    PyKDE@mats.imk.fraunhofer.de
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic