You currently set categories using the string form of the integer index. As a starting point you should try setting something based on the dates you read from the file.
Then you could investigate how to use QDateTimeAxis