How can i run application in full screen over 2 screens.

resize and setgeometry not working. Works only when i set fixed width but application is not in full screen mode.