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.
28 lines
471 B
28 lines
471 B
|
4 years ago
|
#ifndef XEXCEL_H
|
||
|
|
#define XEXCEL_H
|
||
|
|
|
||
|
|
#include <QObject>
|
||
|
|
|
||
|
|
class QAxObject;
|
||
|
|
class XExcel : public QObject
|
||
|
|
{
|
||
|
|
Q_OBJECT
|
||
|
|
public:
|
||
|
|
explicit XExcel(QObject *parent = nullptr);
|
||
|
|
//打开excel com
|
||
|
|
void openExcelCom();
|
||
|
|
//关闭excel com
|
||
|
|
void closeExcelCom();
|
||
|
|
|
||
|
|
QList<QList<QVariant> > readExcel(QString fileName);
|
||
|
|
void readExcels(QList<QString> fileNames);
|
||
|
|
|
||
|
|
signals:
|
||
|
|
|
||
|
|
private:
|
||
|
|
QAxObject* m_pExcel;
|
||
|
|
QAxObject* m_pWorkbooks;
|
||
|
|
};
|
||
|
|
|
||
|
|
#endif // XEXCEL_H
|