Select multiple in the QListView, then I click the button to delete these lines, as follows, in addBtnClicked () I define QItemSelectionModel and QModelIndexList access QListView selected index, but running, can disrupt the end of the function, mainly because QModelIndexList indexlist=selmodel - & gt; SelectedIndexes (); This line defines the cause, could you tell me how to solve it? (my environment is Qt 5.2.0 VS2012 platform, VS2010 V100 toolset, if use V110 tool set is no problem)