Prepare the environment: three methods of using the QtXlsx library in QT
1. Merge cells
2. Unmerge cells
3. Alignment of cell contents
3.1 Horizontal alignment
3.2 Vertical alignment
3.3 Save the original content of the cell, and write the new format to the original position
3.4 Get cell format
4. Set the border style of the cell
5. Set the cell to wrap automatically
6. Set the background color of the cell
7. Set column width or row height
8. Get the number of rows and columns
9. Set the row and column styles
10. Column Adaptive
11. Font style (color, font, size, italic, strikethrough, underline
1. Merge cells
bool Document::mergeCells(const CellRange &range, const Format &format)
- Function description: Merge the cells in the range, and fill them with the data of the first cell after merging, and the data of other cells will be cleared; the cell format can be set through format.
- Parameter range: the range of cells to be merged;
- Parameter format: the format of the cell (such as text alignment, font size, color, etc.);