⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 class_qwt_text.html

📁 QWT5.01用于Qt开发的二维图形库程序
💻 HTML
📖 第 1 页 / 共 5 页
字号:
      &nbsp;    </td>    <td><p>Set the pen color used for painting the text.<p><dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign="top"></td><td valign="top"><em>color</em>&nbsp;</td><td>Color </td></tr>  </table></dl><dl compact><dt><b>Note:</b></dt><dd>Setting the color might have no effect, when the text contains control sequences for setting colors. </dd></dl><p>Definition at line <a class="el" href="qwt__text_8cpp-source.html#l00323">323</a> of file <a class="el" href="qwt__text_8cpp-source.html">qwt_text.cpp</a>.<p>References <a class="el" href="qwt__text_8cpp-source.html#l00401">setPaintAttribute()</a>.<p>Referenced by <a class="el" href="qwt__plot__printfilter_8cpp-source.html#l00366">QwtPlotPrintFilter::reset()</a>.    </td>  </tr></table><a class="anchor" name="d071f3c4fae4512a1cc71554d95eb69a"></a><!-- doxytag: member="QwtText::setFont" ref="d071f3c4fae4512a1cc71554d95eb69a" args="(const QFont &amp;)" --><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">void QwtText::setFont           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const QFont &amp;&nbsp;</td>          <td class="mdname1" valign="top" nowrap> <em>font</em>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Set the font.<p><dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign="top"></td><td valign="top"><em>font</em>&nbsp;</td><td>Font </td></tr>  </table></dl><dl compact><dt><b>Note:</b></dt><dd>Setting the font might have no effect, when the text contains control sequences for setting fonts. </dd></dl><p>Definition at line <a class="el" href="qwt__text_8cpp-source.html#l00289">289</a> of file <a class="el" href="qwt__text_8cpp-source.html">qwt_text.cpp</a>.<p>References <a class="el" href="qwt__text_8cpp-source.html#l00401">setPaintAttribute()</a>.    </td>  </tr></table><a class="anchor" name="2b621d3104ead2185d2d939b1f5b9d68"></a><!-- doxytag: member="QwtText::setLayoutAttribute" ref="2b621d3104ead2185d2d939b1f5b9d68" args="(LayoutAttribute, bool on=true)" --><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">void QwtText::setLayoutAttribute           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top"><a class="el" href="class_qwt_text.html#0953aabc098f410dba89bbada47f2e5a">LayoutAttribute</a>&nbsp;</td>          <td class="mdname" nowrap> <em>attribute</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>bool&nbsp;</td>          <td class="mdname" nowrap> <em>on</em> = <code>true</code></td>        </tr>        <tr>          <td class="md"></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Change a layout attribute<p><dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign="top"></td><td valign="top"><em>attribute</em>&nbsp;</td><td>Layout attribute </td></tr>    <tr><td valign="top"></td><td valign="top"><em>on</em>&nbsp;</td><td>On/Off </td></tr>  </table></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_text.html#5b7bddee1d80139b93d60a0a3a044944">testLayoutAttribute</a> </dd></dl><p>Definition at line <a class="el" href="qwt__text_8cpp-source.html#l00429">429</a> of file <a class="el" href="qwt__text_8cpp-source.html">qwt_text.cpp</a>.    </td>  </tr></table><a class="anchor" name="ac80e3f05137173059b196206ceea9e8"></a><!-- doxytag: member="QwtText::setPaintAttribute" ref="ac80e3f05137173059b196206ceea9e8" args="(PaintAttribute, bool on=true)" --><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">void QwtText::setPaintAttribute           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top"><a class="el" href="class_qwt_text.html#9739e47ea489e690f121e4b1d27ae24e">PaintAttribute</a>&nbsp;</td>          <td class="mdname" nowrap> <em>attribute</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>bool&nbsp;</td>          <td class="mdname" nowrap> <em>on</em> = <code>true</code></td>        </tr>        <tr>          <td class="md"></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Change a paint attribute<p><dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign="top"></td><td valign="top"><em>attribute</em>&nbsp;</td><td>Paint attribute </td></tr>    <tr><td valign="top"></td><td valign="top"><em>on</em>&nbsp;</td><td>On/Off</td></tr>  </table></dl><dl compact><dt><b>Note:</b></dt><dd>Used by setFont, setColor, setBackgroundPen and setBackgroundBrush </dd></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_text.html#53c4bcae538e272660d33bed6f71f01b">testPaintAttribute</a> </dd></dl><p>Definition at line <a class="el" href="qwt__text_8cpp-source.html#l00401">401</a> of file <a class="el" href="qwt__text_8cpp-source.html">qwt_text.cpp</a>.<p>Referenced by <a class="el" href="qwt__text_8cpp-source.html#l00377">setBackgroundBrush()</a>, <a class="el" href="qwt__text_8cpp-source.html#l00356">setBackgroundPen()</a>, <a class="el" href="qwt__text_8cpp-source.html#l00323">setColor()</a>, and <a class="el" href="qwt__text_8cpp-source.html#l00289">setFont()</a>.    </td>  </tr></table><a class="anchor" name="2e71d427de766455323794f27d369a5d"></a><!-- doxytag: member="QwtText::setRenderFlags" ref="2e71d427de766455323794f27d369a5d" args="(int flags)" --><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">void QwtText::setRenderFlags           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">int&nbsp;</td>          <td class="mdname1" valign="top" nowrap> <em>renderFlags</em>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Change the render flags. <p>The default setting is Qt::AlignCenter<p><dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign="top"></td><td valign="top"><em>renderFlags</em>&nbsp;</td><td>Bitwise OR of the flags used like in QPainter::drawText</td></tr>  </table></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_text.html#59c6bf54af867ce5632a07117fe442e1">renderFlags</a>, <a class="el" href="class_qwt_text_engine.html#cf750dd01aa35f5c9fc836460c30d663">QwtTextEngine::draw</a> </dd></dl><dl compact><dt><b>Note:</b></dt><dd>Some renderFlags might have no effect, depending on the text format. </dd></dl><p>Definition at line <a class="el" href="qwt__text_8cpp-source.html#l00264">264</a> of file <a class="el" href="qwt__text_8cpp-source.html">qwt_text.cpp</a>.<p>Referenced by <a class="el" href="qwt__scale__widget_8cpp-source.html#l00622">QwtScaleWidget::drawTitle()</a>, <a class="el" href="qwt__legend__item_8cpp-source.html#l00120">QwtLegendItem::setText()</a>, <a class="el" href="qwt__scale__widget_8cpp-source.html#l00168">QwtScaleWidget::setTitle()</a>, and <a class="el" href="qwt__abstract__scale__draw_8cpp-source.html#l00377">QwtAbstractScaleDraw::tickLabel()</a>.    </td>  </tr></table><a class="anchor" name="9ba9caa82fcfbc4bfbf8ce20ccea981e"></a><!-- doxytag: member="QwtText::setText" ref="9ba9caa82fcfbc4bfbf8ce20ccea981e" args="(const QString &amp;, QwtText::TextFormat textFormat=AutoText)" --><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">void QwtText::setText           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const QString &amp;&nbsp;</td>          <td class="mdname" nowrap> <em>text</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap><a class="el" href="class_qwt_text.html#63e0d6a59a427a37ed0bfa71b782fd76">QwtText::TextFormat</a>&nbsp;</td>          <td class="mdname" nowrap> <em>textFormat</em> = <code>AutoText</code></td>        </tr>        <tr>          <td class="md"></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Assign a new text content<p><dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign="top"></td><td valign="top"><em>text</em>&nbsp;</td><td>Text content </td></tr>    <tr><td valign="top"></td><td valign="top"><em>textFormat</em>&nbsp;</td><td>Text format </td></tr>  </table></dl><p>Definition at line <a class="el" href="qwt__text_8cpp-source.html#l00237">237</a> of file <a class="el" href="qwt__text_8cpp-source.html">qwt_text.cpp</a>.<p>References <a class="el" href="qwt__text_8cpp-source.html#l00640">textEngine()</a>.    </td>  </tr></table><a class="anchor" name="ef6a1e71b1feba3116ce69f6c9de70ad"></a><!-- doxytag: member="QwtText::setTextEngine" ref="ef6a1e71b1feba3116ce69f6c9de70ad" args="(QwtText::TextFormat, QwtTextEngine *)" --><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">void QwtText::setTextEngine           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top"><a class="el" href="class_qwt_text.html#63e0d6a59a427a37ed0bfa71b782fd76">QwtText::TextFormat</a>&nbsp;</td>          <td class="mdname" nowrap> <em>format</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap><a class="el" href="class_qwt_text_engine.html">QwtTextEngine</a> *&nbsp;</td>          <td class="mdname" nowrap> <em>engine</em></td>        </tr>        <tr>          <td class="md"></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"><code> [static]</code></td>        </tr>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -