1
0
mirror of https://github.com/QtExcel/QXlsx.git synced 2025-01-30 05:02:52 +08:00
QXlsx/Copycat/XlsxTab.h

44 lines
707 B
C++

// XlsxTab.h
#ifndef XLSXTAB_H
#define XLSXTAB_H
#include <cstdio>
#include <QtGlobal>
#include <QObject>
#include <QString>
#include <QWidget>
#include <QTableWidget>
#include "xlsx.h"
/**
* @brief xlsx sub-tab widget
*/
class XlsxTab : public QWidget
{
Q_OBJECT
public:
explicit XlsxTab(QWidget* parent = NULL,
QXlsx::Document* ptrDoc = NULL,
QXlsx::AbstractSheet* ptrSheet = NULL,
int SheetIndex = -1);
virtual ~XlsxTab();
signals:
public slots:
private:
QTableWidget* table;
QXlsx::Document* document;
QXlsx::AbstractSheet* sheet;
int sheetIndex;
private:
bool setSheet();
};
#endif // XLSXTAB_H