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

📄 class_qwt_rich_text_engine.html

📁 QWT5.01用于Qt开发的二维图形库程序
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"><title>Qwt User&apos;s Guide: QwtRichTextEngine Class Reference</title><link href="doxygen.css" rel="stylesheet" type="text/css"><link href="tabs.css" rel="stylesheet" type="text/css"></head><body><!-- Generated by Doxygen 1.4.6 --><div class="tabs">  <ul>    <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>    <li id="current"><a href="classes.html"><span>Classes</span></a></li>    <li><a href="files.html"><span>Files</span></a></li>    <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>  </ul></div><div class="tabs">  <ul>    <li><a href="classes.html"><span>Alphabetical&nbsp;List</span></a></li>    <li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>    <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>    <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>  </ul></div><h1>QwtRichTextEngine Class Reference</h1><!-- doxytag: class="QwtRichTextEngine" --><!-- doxytag: inherits="QwtTextEngine" -->Inheritance diagram for QwtRichTextEngine:<p><center><img src="class_qwt_rich_text_engine__inherit__graph.png" border="0" usemap="#_qwt_rich_text_engine__inherit__map" alt="Inheritance graph"></center><map name="_qwt_rich_text_engine__inherit__map"><area href="class_qwt_text_engine.html" shape="rect" coords="20,8,132,32" alt=""></map><center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center>Collaboration diagram for QwtRichTextEngine:<p><center><img src="class_qwt_rich_text_engine__coll__graph.png" border="0" usemap="#_qwt_rich_text_engine__coll__map" alt="Collaboration graph"></center><map name="_qwt_rich_text_engine__coll__map"><area href="class_qwt_text_engine.html" shape="rect" coords="20,8,132,32" alt=""></map><center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center><a href="class_qwt_rich_text_engine-members.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2>A text engine for Qt rich texts. <p><a class="el" href="class_qwt_rich_text_engine.html">QwtRichTextEngine</a> renders Qt rich texts using the classes of the Scribe framework of Qt. <p><p>Definition at line <a class="el" href="qwt__text__engine_8h-source.html#l00150">150</a> of file <a class="el" href="qwt__text__engine_8h-source.html">qwt_text_engine.h</a>.<table border="0" cellpadding="0" cellspacing="0"><tr><td></td></tr><tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_rich_text_engine.html#a4c1d5a1ee88d7406ba1d6453005b46a">QwtRichTextEngine</a> ()</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">virtual int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_rich_text_engine.html#ff5b59b422c64eb30230b767675b0b79">heightForWidth</a> (const QFont &amp;font, int flags, const QString &amp;text, int width) const </td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">virtual QSize&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_rich_text_engine.html#f6232e54a4991dcee4a7b3c783163537">textSize</a> (const QFont &amp;font, int flags, const QString &amp;text) const </td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_rich_text_engine.html#3b22116710e9095a95e2739e84623725">draw</a> (QPainter *painter, const QRect &amp;rect, int flags, const QString &amp;text) const </td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">virtual bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_rich_text_engine.html#42da46eee5fbda55e34b18c64b0b5e0b">mightRender</a> (const QString &amp;) const </td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_rich_text_engine.html#675bb28d8526fbcdbecc1833edffb980">textMargins</a> (const QFont &amp;, const QString &amp;, int &amp;left, int &amp;right, int &amp;top, int &amp;bottom) const </td></tr></table><hr><h2>Constructor &amp; Destructor Documentation</h2><a class="anchor" name="a4c1d5a1ee88d7406ba1d6453005b46a"></a><!-- doxytag: member="QwtRichTextEngine::QwtRichTextEngine" ref="a4c1d5a1ee88d7406ba1d6453005b46a" args="()" --><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">QwtRichTextEngine::QwtRichTextEngine           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="mdname1" valign="top" nowrap>          </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>Constructor. <p><p>Definition at line <a class="el" href="qwt__text__engine_8cpp-source.html#l00231">231</a> of file <a class="el" href="qwt__text__engine_8cpp-source.html">qwt_text_engine.cpp</a>.    </td>  </tr></table><hr><h2>Member Function Documentation</h2><a class="anchor" name="3b22116710e9095a95e2739e84623725"></a><!-- doxytag: member="QwtRichTextEngine::draw" ref="3b22116710e9095a95e2739e84623725" args="(QPainter *painter, const QRect &amp;rect, int flags, const QString &amp;text) const " --><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 QwtRichTextEngine::draw           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">QPainter *&nbsp;</td>          <td class="mdname" nowrap> <em>painter</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>const QRect &amp;&nbsp;</td>          <td class="mdname" nowrap> <em>rect</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>int&nbsp;</td>          <td class="mdname" nowrap> <em>flags</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>const QString &amp;&nbsp;</td>          <td class="mdname" nowrap> <em>text</em></td>        </tr>        <tr>          <td class="md"></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"> const<code> [virtual]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Draw the text in a clipping rectangle<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>painter</em>&nbsp;</td><td>Painter </td></tr>    <tr><td valign="top"></td><td valign="top"><em>rect</em>&nbsp;</td><td>Clipping rectangle </td></tr>    <tr><td valign="top"></td><td valign="top"><em>flags</em>&nbsp;</td><td>Bitwise OR of the flags like in for QPainter::drawText </td></tr>    <tr><td valign="top"></td><td valign="top"><em>text</em>&nbsp;</td><td>Text to be rendered </td></tr>  </table></dl><p>Implements <a class="el" href="class_qwt_text_engine.html#cf750dd01aa35f5c9fc836460c30d663">QwtTextEngine</a>.<p>Definition at line <a class="el" href="qwt__text__engine_8cpp-source.html#l00343">343</a> of file <a class="el" href="qwt__text__engine_8cpp-source.html">qwt_text_engine.cpp</a>.<p>References <a class="el" href="qwt__painter_8cpp-source.html#l00404">QwtPainter::drawSimpleRichText()</a>.    </td>  </tr></table><a class="anchor" name="ff5b59b422c64eb30230b767675b0b79"></a><!-- doxytag: member="QwtRichTextEngine::heightForWidth" ref="ff5b59b422c64eb30230b767675b0b79" args="(const QFont &amp;font, int flags, const QString &amp;text, int width) const " --><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">int QwtRichTextEngine::heightForWidth           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const QFont &amp;&nbsp;</td>          <td class="mdname" nowrap> <em>font</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>int&nbsp;</td>          <td class="mdname" nowrap> <em>flags</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>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>int&nbsp;</td>          <td class="mdname" nowrap> <em>width</em></td>        </tr>        <tr>          <td class="md"></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"> const<code> [virtual]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td>

⌨️ 快捷键说明

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