Converting the variant, you mean? I forget the details, but I believe I tried using QVariants directly at first, and QByteArray in particular resulted in awful encoding issues (written as an 8-bit byte array, but read as 16-bit strings). Converting to string explicitly seems like the best way to ensure everything ends up sane and readable.