Extract Data Example

This is a simplest Qt Xlsx example.

This example demonstrates how to extract data form existing .xlsx file with Qt Xlsx Library. So lets see how this is achieved.

This creates a new instance of the all important Document class which gives you access to the Excel workbook and worksheets.

QXlsx::Document xlsx("Book1.xlsx");

Extracts data from current worksheet.

qDebug()<<xlsx.read("A1");
qDebug()<<xlsx.read("A2");
qDebug()<<xlsx.read("A3");
qDebug()<<xlsx.read("A4");
qDebug()<<xlsx.read("A5");
qDebug()<<xlsx.read("A6");
qDebug()<<xlsx.read("A7");

Files: