Apple and Qualcomm have reached a settlement that means both sides can work together, at least for the next six years.