Qt: remove unneeded margins and parameters