Resolve the selection only at mouseReleaseEvent instead of relying on the signal selectionChanged.