How do I allow my listwidget to show the highlighted item upon execution? Currently for mine, it highlights the item but I have to scroll down everytime I execute my program to see if it is highlighting the correct item.. (My list items are very huge)
- Code: Select all
currentItem = os.environ['ITEM']
for item in self.serverItemList.findItems(currentItem, Qt.MatchFixedString):
I know that qlistwidget has a property/slot called scrollToItem and I strongly suspect that I have written wrong. Can someone advise me?