[PyKDE] Re: Re: Shading after QListView.setSelected()
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
> the shading to gray. Does the gray shading mean that the item is
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.
More information about the PyQt