找到了设置框线格式的函数,但还是达不到想要的效果。
format.setLeftBorderStyle(QXlsx::Format::BorderThin); //左框线
format.setRightBorderStyle(QXlsx::Format::BorderThin); //右框线
format.setTopBorderStyle(QXlsx::Format::BorderThin); //上框线
format.setBottomBorderStyle(QXlsx::Format::BorderThin); //下框线
但是使用xlsx.setRowFormat(,format)、xlsx.setColumnFormat(,format)设置时,要么是整行,要么是整列设置,表格以外的区域都被添加了框线,有没有什么办法只设置选定的区域添加框线?求助!!!