This code uses Qt to read the data in the bin file.