Class for Data I/O with Qt