QXlsx icon indicating copy to clipboard operation
QXlsx copied to clipboard

set cell data items format

Open kuangqifu opened this issue 3 years ago • 1 comments

is there a way to set cell data items format?that user can dropdown to select an item.

kuangqifu avatar Feb 16 '22 07:02 kuangqifu

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);

j2doll avatar Aug 08 '24 06:08 j2doll