Below you can see the front-view size comparison of the Leica Q2 and Canon 5DS. The Leica Q2 is 22 mm narrower and 36 mm shorter than the Canon 5DS but it is also 16 mm thicker.
The chart below depicts how two cameras compare with average dimensions of the cameras in their class.