Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QXlsx re-format failed
Qt 6.11 is out! See what's new in the release blog

QXlsx re-format failed

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 228 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    juneleung
    wrote on last edited by
    #1
    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.

    https://github.com/QtExcel/QXlsx/issues/233

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved