XML will be a easy way I guess.
However you may also look at using QDataStream. You can stream your class through it and read back. Read the documentation to get an idea