After a QtGui.QListWidget was populated with the list items ( QtGui.QListWidgetItem ) I would like to select a very first list item (just the way it happens when a user clicks on list item with left-click mouse). What command or method would get me there?

EDITED

MyListWidget.setCurrentRow(0) method makes/sets a first list_item current. But it doesn't trigger any functions a list_item could be connected to.... no signal get emitted...

有帮助吗?

解决方案

You can use setCurrentRow:

    self.list.setCurrentRow(0)
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top