2018-12-20 15:30:29 +09:00
|
|
|
// test.cpp
|
|
|
|
|
2023-09-04 00:46:33 -03:00
|
|
|
#include <iostream>
|
|
|
|
|
|
|
|
#include <QColor>
|
2018-12-20 15:30:29 +09:00
|
|
|
#include <QCoreApplication>
|
2023-09-04 00:46:33 -03:00
|
|
|
#include <QDebug>
|
2019-02-06 00:08:18 +09:00
|
|
|
#include <QDir>
|
2020-07-18 21:01:58 +09:00
|
|
|
#include <QImage>
|
2021-06-06 21:58:20 +09:00
|
|
|
#include <QRandomGenerator>
|
2023-09-04 00:46:33 -03:00
|
|
|
#include <QRgb>
|
|
|
|
#include <QVariant>
|
|
|
|
#include <QVector>
|
|
|
|
#include <QtCore>
|
|
|
|
#include <QtGlobal>
|
2018-12-20 15:30:29 +09:00
|
|
|
using namespace std;
|
|
|
|
|
|
|
|
#include "xlsxcellrange.h"
|
|
|
|
#include "xlsxchart.h"
|
2023-09-04 00:46:33 -03:00
|
|
|
#include "xlsxchartsheet.h"
|
|
|
|
#include "xlsxdocument.h"
|
2018-12-20 15:30:29 +09:00
|
|
|
#include "xlsxrichstring.h"
|
|
|
|
#include "xlsxworkbook.h"
|
|
|
|
|
2023-09-04 00:46:33 -03:00
|
|
|
int test162(QVector<QVariant> params)
|
2020-06-06 23:31:54 +09:00
|
|
|
{
|
2019-02-15 18:55:56 +09:00
|
|
|
using namespace QXlsx;
|
|
|
|
|
2020-07-18 21:01:58 +09:00
|
|
|
Document xlsx;
|
2020-06-06 23:31:54 +09:00
|
|
|
|
2020-07-18 21:01:58 +09:00
|
|
|
xlsx.saveAs("image1.xlsx");
|
|
|
|
|
2021-06-06 21:58:20 +09:00
|
|
|
Document xlsx2("image1.xlsx");
|
2023-09-04 00:46:33 -03:00
|
|
|
qDebug() << "xlsx2";
|
2020-07-18 22:01:23 +09:00
|
|
|
qDebug() << " image count : " << xlsx.getImageCount();
|
2020-07-18 21:01:58 +09:00
|
|
|
xlsx2.saveAs("image2.xlsx");
|
2019-02-23 20:42:21 +09:00
|
|
|
|
2018-12-20 15:30:29 +09:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2023-09-04 00:46:33 -03:00
|
|
|
int test(QVector<QVariant> params)
|
2023-01-05 16:14:01 +09:00
|
|
|
{
|
|
|
|
qDebug() << "[debug] current path : " << QDir::currentPath();
|
|
|
|
// return test162( params );
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|