I know, I too hate when people propose an alternative instead of answering the actual question but please forgive me this time. QXlsxWriter is a Qt based library to read and write excel files and I did not have many problems with it so far