QtXlsxWriter
QtXlsxWriter copied to clipboard
sheet->dimension().lastColumn() returns 0 in LibreOffice
In a LibreOffice edited Excel file the function dimension().lastColumn() returns 0 even if the sheet has columns. I'm using the following code:
excelSheet = (QXlsx::Worksheet*)xlsx.sheet("choices");
qDebug() << excelSheet->dimension().lastColumn(); //Returns 0
You can test it with the file below with the sheet called "choices" Download test here