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