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