Qt breaks fscanf