QXlsx
QXlsx copied to clipboard
set cell data items format
is there a way to set cell data items format?that user can dropdown to select an item.
Dear @kuangqifu
Are you talking about the following?
QXlsx::Document xlsx;
QXlsx::Format format1;
format1.setFontColor(QColor(Qt::red));
format1.setFontSize(15);
format1.setHorizontalAlignment(QXlsx::Format::AlignHCenter);
format1.setBorderStyle(QXlsx::Format::BorderDashDotDot);
xlsx.write("A1", "Hello Qt!", format1);
xlsx.write("B3", 12345, format1);