Select the current girl (even if it isn't shown all the time).
self.lst=QListView(self)
self.lst.setModel(self.lstm)
+ self.lst.setProperty("FingerScrollable", True)
+
self.l0.addWidget(self.lst)
self.buttonNew=QPushButton(self)
# Set current selection
idx=dt.index(current)
- self.lst.setCurrentIndex(self.lstm.index(idx))
+
+ # Either I'm doing something stupid, or this is a QT bug
+ # The selection works but isn't shown
+ idx2=self.lstm.index(idx, 0)
+ self.lst.setCurrentIndex(idx2)
# Run
QDialog.exec_(self)