Below you can see the front-view size comparison of the Leica Q2 and Sony A7R. The Sony A7R is 3 mm narrower and 44 mm thinner than the Leica Q2 but it is also 14 mm taller.
The chart below depicts how two cameras compare with average dimensions of the cameras in their class.