Printing from a qt application doesn't work