You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
406 B
19 lines
406 B
#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;
|
|
}
|
|
|