McDermott and Q developed a relationship and got engaged while working on their 2014-15 CBS crime drama series.