CodePudding user response:
See selectionModel () function, the object returned with it (QItemSelectionModel) the selectionChanged () signal, can deal with what you said requirements,CodePudding user response:
OK done thank top greatly! First by QItemSelectionModel binding the selectionChanged through the slot in signal processing of QItemSelectionModel hasSelection method to judge whether to have the option of post-processing operation through currentIndex which event filtering method for the currently selected item I tested under the seemingly no binding QItemSelectionModel or tableView appeared to have no...CodePudding user response:
Can be judged hasSelection method, but can't determine to cancel