Below you can see the front-view size comparison of the Leica Q and Sony RX100. The Sony RX100 is clearly the smaller of the two cameras. Its body is 28 mm narrower, 22 mm shorter and 57 mm thinner than the Leica Q.
The chart below depicts how two cameras compare with average dimensions of the cameras in their class.