<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[qt word ColorIndex]]></title><description><![CDATA[<p dir="auto">I want to change the text color, but I want to change it to a customized color.<br />
You can use wdByAuthor, but how can you put the color value?</p>
<pre><code> QAxObject* pTiltle = pDoc-&gt;querySubObject("Range()");
        pTiltle-&gt;dynamicCall("SetRange(int, int)", 0, 100);
        pTiltle-&gt;setProperty("Text", "Measure Summary");
        pTiltle-&gt;setProperty("Underline", "wdUnderlineThick");

        QAxObject* pFont = pTiltle-&gt;querySubObject("Font");
        pFont-&gt;setProperty("ColorIndex", "wdRed");
        //pFont-&gt;setProperty("ColorIndex", "RGB(16,63,156)");
        pFont-&gt;setProperty("Size", 25);
</code></pre>
<p dir="auto">The second question is how do you insert a table and put it in the table?</p>
]]></description><link>https://forum.qt.io/topic/130279/qt-word-colorindex</link><generator>RSS for Node</generator><lastBuildDate>Fri, 06 Nov 2026 18:32:13 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/130279.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 14 Sep 2021 04:15:18 GMT</pubDate><ttl>60</ttl></channel></rss>