Yes, read all the lines previous to the line you want and ignore them, then read the line you want and store it. If the lines are the same length then you can seek to a particular position in the file using a simple formula, but they rarely are.

But if your reading xml (it seems like it from your example), a better idea would be QDomDocument.