Using QXlsx::Document instead of QXlsx::Workbook