[PyKDE] Re: Re: Shading after QListView.setSelected()

Jeffrey Barish jeff_barish at earthlink.net
Wed Mar 30 02:24:55 BST 2005

Jeffrey Barish wrote:
> I should also mention that with this
> sample, the selection (after setSelected) is not gray.  Trying to get
> the shading to blue was what led me to this problem in the first
> place. At this point, I don't know what it is in the full program that
> changes
> the shading to gray.  Does the gray shading mean that the item is
> disabled?
For the record: it was gray because the listview was not the focus. 
Using self.setFocus() in the constructor for the listview solved the
problem.  In the sample program, there was only one box, so it
automatically got the focus.
Jeffrey Barish

More information about the PyQt mailing list