Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. qt word ColorIndex
Qt 6.12 LTS is out! See what's new in the release blog

qt word ColorIndex

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 263 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.
  • I Offline
    I Offline
    IknowQT
    wrote on last edited by IknowQT
    #1

    I want to change the text color, but I want to change it to a customized color.
    You can use wdByAuthor, but how can you put the color value?

     QAxObject* pTiltle = pDoc->querySubObject("Range()");
            pTiltle->dynamicCall("SetRange(int, int)", 0, 100);
            pTiltle->setProperty("Text", "Measure Summary");
            pTiltle->setProperty("Underline", "wdUnderlineThick");
    
            QAxObject* pFont = pTiltle->querySubObject("Font");
            pFont->setProperty("ColorIndex", "wdRed");
            //pFont->setProperty("ColorIndex", "RGB(16,63,156)");
            pFont->setProperty("Size", 25);
    

    The second question is how do you insert a table and put it in the table?

    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
    • Unsolved