534490e9b2
Change-Id: I71bbf133223931eddb0c7e568cc0b99ecf807fa1
20 lines
412 B
C++
20 lines
412 B
C++
#include <QtGui>
|
|
#include "xlsxdocument.h"
|
|
|
|
int main(int argc, char **argv)
|
|
{
|
|
QGuiApplication(argc, argv);
|
|
|
|
QXlsx::Document xlsx;
|
|
QImage image(40, 30, QImage::Format_RGB32);
|
|
image.fill(Qt::green);
|
|
for (int i = 0; i < 10; ++i)
|
|
xlsx.insertImage(10 * i, 5, image);
|
|
xlsx.saveAs("Book1.xlsx");
|
|
|
|
QXlsx::Document xlsx2("Book1.xlsx");
|
|
xlsx2.saveAs("Book2.xlsx");
|
|
|
|
return 0;
|
|
}
|