Re: PyQt - Question on QListWidget's selectedItems Method

2008-04-01 Thread Kelie
Another question I have about QListWidget is when user manually selects and deselects a QListWidgetItem, the background color switches between blue and white. But when an item is programmingly selected with setItemSelected method, the background color is some kind of light gray instead of blue. Why

PyQt - Question on QListWidget's selectedItems Method

2008-04-01 Thread Kelie
Hello, This method returns selected items by the order of user's picking, instead of the original order of these items. For example, if a ListWidget stores a list of ['A', 'B', 'C', 'D'] and when user is prompted to make a selection, if he picks 'D' first, then 'B', the returned ListWidget items w