Sky Sports sources understand that Queens Park Rangers have agreed a deal in principle to sign Real Madrid defender Ricardo Carvalho on a season-long loan.