Qt 6.12 LTS is out! See what's new in the release
blog
qt word ColorIndex
-
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?