If not generating a new-line for the last entry is the goal, comparing to sendingTos.size() - 1 is not enough, as the next entry may not generate a line of text at all even if it exists (but has a non-address target). 
I'd do this differently: Build a QStringList, then at the end concatenate them using join("<br />"). This also means that the counter `i` can go.