QXlsx icon indicating copy to clipboard operation
QXlsx copied to clipboard

re-format failed

Open juneleung opened this issue 1 year ago • 0 comments

QXlsx::Format format;
if(fg){format = cell->format();}
format.setFont(newfont);
format.setPatternBackgroundColor(QColor(255,00,200));
xlsx.write(i, j, value, format);

in this code, I try to re-format the cell. if fg is true, setfont will not work but setcolor works. if fg is false, both work, that looks strange and I haven't found any solution, hoping for a guide about reformatting the cell.

juneleung avatar Sep 03 '22 18:09 juneleung