基于QWidget的示例
已完成接口:
- bool isOpen();
- bool openFile(QString filePath);
- QString getTitle();
- bool setTitle(QString title);//TODO:无法正常设置成功
- QString getWorksheetName();
- bool setWorksheetName(QString worksheetName);
- int getWorksheetCount();
- bool setCurrentWorkSheet(int index);
- void appendWorksheet();
- void deleteCurrentWorksheet();//TODO:当工作表有数据时,无法删除
- int getRows();
- int getColumns();
- int getStartRows();
- int getStartColumns();
- QString getCellText(int row, int col);
- bool setCellText(QString text, int row, int col, ALIGNMENT_H alignmentH = ALIGN_LEFT, ALIGNMENT_V alignmentV = ALIGN_TOP, bool wrap = false);
- void closeFile();