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

List:       pykde
Subject:    [PyKDE] Re: Re: Shading after QListView.setSelected()
From:       Jeffrey Barish <jeff_barish () earthlink ! net>
Date:       2005-03-30 1:24:55
Message-ID: d2cv3d$kam$1 () sea ! gmane ! org
[Download RAW message or body]

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

_______________________________________________
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