Below you can see the front-view size comparison of the Nikon P340 and Fujifilm XQ1. The Nikon P340 is 1 mm shorter and 1 mm thinner than the Fujifilm XQ1 but it is also 3 mm wider.
The chart below depicts how two cameras compare with average dimensions of the cameras in their class.