1
0
mirror of https://github.com/QtExcel/QXlsx.git synced 2025-01-16 04:42:53 +08:00
QXlsx/IssueTest/test.cpp

53 lines
889 B
C++
Raw Normal View History

2018-12-20 15:30:29 +09:00
// test.cpp
#include <QtGlobal>
#include <QCoreApplication>
#include <QtCore>
#include <QVector>
#include <QVariant>
#include <QDebug>
2019-02-06 00:08:18 +09:00
#include <QDir>
2020-07-18 21:01:58 +09:00
#include <QColor>
#include <QImage>
#include <QRgb>
2021-06-06 21:58:20 +09:00
#include <QRandomGenerator>
2018-12-20 15:30:29 +09:00
#include <iostream>
using namespace std;
#include "xlsxdocument.h"
#include "xlsxchartsheet.h"
#include "xlsxcellrange.h"
#include "xlsxchart.h"
#include "xlsxrichstring.h"
#include "xlsxworkbook.h"
2021-06-06 21:58:20 +09: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");
2020-07-18 22:01:23 +09:00
qDebug() << "xlsx2" ;
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;
}
int test( QVector<QVariant> params )
{
qDebug() << "[debug] current path : " << QDir::currentPath();
// return test162( params );
return 0;
}