PDA

View Full Version : how to fix selected item to centre of QListWidget



nernst
23rd May 2014, 08:24
Hi all,

I tried to find a way to fix the selected item of a QListWidget vertically in the centre of the list. So that, when i choose an item, it moves to the centre of the view and all the others around go with it.


******
item1
item2
item3 (now selected)
item4
item5
******

when is select item1, it shall look like this:

******


item1 (now selected)
item2
item3
******

Any clues?

Thanks

high_flyer
23rd May 2014, 09:22
I'd say this a job for QSortFilterProxyModel.