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

📄 class_qwt_text.html

📁 QWT5.01用于Qt开发的二维图形库程序
💻 HTML
📖 第 1 页 / 共 5 页
字号:
          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">int&nbsp;</td>          <td class="mdname" nowrap> <em>width</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>const QFont &amp;&nbsp;</td>          <td class="mdname" nowrap> <em>defaultFont</em> = <code>QFont()</code></td>        </tr>        <tr>          <td class="md"></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"> const</td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Find the height for a given width<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>defaultFont</em>&nbsp;</td><td>Font, used for the calculation if the text has no font </td></tr>    <tr><td valign="top"></td><td valign="top"><em>width</em>&nbsp;</td><td>Width</td></tr>  </table></dl><dl compact><dt><b>Returns:</b></dt><dd>Calculated height </dd></dl><p>Definition at line <a class="el" href="qwt__text_8cpp-source.html#l00458">458</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#l00296">font()</a>, <a class="el" href="qwt__layout__metrics_8h-source.html#l00108">QwtMetricsMap::layoutToScreenX()</a>, <a class="el" href="qwt__painter_8cpp-source.html#l00160">QwtPainter::metricsMap()</a>, <a class="el" href="qwt__layout__metrics_8h-source.html#l00123">QwtMetricsMap::screenToLayoutY()</a>, and <a class="el" href="qwt__text_8cpp-source.html#l00308">usedFont()</a>.    </td>  </tr></table><a class="anchor" name="25843b1120b648752ed5be2247ebe43f"></a><!-- doxytag: member="QwtText::isEmpty" ref="25843b1120b648752ed5be2247ebe43f" args="() 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">bool QwtText::isEmpty           </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> const<code> [inline]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p><dl compact><dt><b>Returns:</b></dt><dd><a class="el" href="class_qwt_text.html#15a42a83153f82bab8cfc283d090d736">text()</a>.<a class="el" href="class_qwt_text.html#25843b1120b648752ed5be2247ebe43f">isEmpty()</a> </dd></dl><p>Definition at line <a class="el" href="qwt__text_8h-source.html#l00152">152</a> of file <a class="el" href="qwt__text_8h-source.html">qwt_text.h</a>.<p>Referenced by <a class="el" href="qwt__scale__draw_8cpp-source.html#l00612">QwtScaleDraw::drawLabel()</a>, <a class="el" href="qwt__round__scale__draw_8cpp-source.html#l00162">QwtRoundScaleDraw::drawLabel()</a>, <a class="el" href="qwt__round__scale__draw_8cpp-source.html#l00269">QwtRoundScaleDraw::extent()</a>, <a class="el" href="qwt__scale__draw_8cpp-source.html#l00717">QwtScaleDraw::labelRect()</a>, and <a class="el" href="qwt__picker_8cpp-source.html#l00717">QwtPicker::trackerRect()</a>.    </td>  </tr></table><a class="anchor" name="fdf53f75d1b8ce6f2f0b00df59fa0177"></a><!-- doxytag: member="QwtText::isNull" ref="fdf53f75d1b8ce6f2f0b00df59fa0177" args="() 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">bool QwtText::isNull           </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> const<code> [inline]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p><dl compact><dt><b>Returns:</b></dt><dd><a class="el" href="class_qwt_text.html#15a42a83153f82bab8cfc283d090d736">text()</a>.<a class="el" href="class_qwt_text.html#fdf53f75d1b8ce6f2f0b00df59fa0177">isNull()</a> </dd></dl><p>Definition at line <a class="el" href="qwt__text_8h-source.html#l00149">149</a> of file <a class="el" href="qwt__text_8h-source.html">qwt_text.h</a>.    </td>  </tr></table><a class="anchor" name="d4a8678071c7e114c47a21f1f78cca37"></a><!-- doxytag: member="QwtText::operator=" ref="d4a8678071c7e114c47a21f1f78cca37" args="(const QwtText &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"><a class="el" href="class_qwt_text.html">QwtText</a> &amp; QwtText::operator=           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const <a class="el" href="class_qwt_text.html">QwtText</a> &amp;&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>Assignement operator. <p><p>Definition at line <a class="el" href="qwt__text_8cpp-source.html#l00207">207</a> of file <a class="el" href="qwt__text_8cpp-source.html">qwt_text.cpp</a>.<p>References <a class="el" href="qwt__text_8h-source.html#l00191">d_data</a>, and <a class="el" href="qwt__text_8h-source.html#l00194">d_layoutCache</a>.    </td>  </tr></table><a class="anchor" name="59c6bf54af867ce5632a07117fe442e1"></a><!-- doxytag: member="QwtText::renderFlags" ref="59c6bf54af867ce5632a07117fe442e1" args="() 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 QwtText::renderFlags           </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> const</td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p><dl compact><dt><b>Returns:</b></dt><dd>Render flags </dd></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_text.html#2e71d427de766455323794f27d369a5d">setRenderFlags</a> </dd></dl><p>Definition at line <a class="el" href="qwt__text_8cpp-source.html#l00277">277</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#l00168">QwtScaleWidget::setTitle()</a>.    </td>  </tr></table><a class="anchor" name="f016a747b234aede9f0cbbeb06ed2802"></a><!-- doxytag: member="QwtText::setBackgroundBrush" ref="f016a747b234aede9f0cbbeb06ed2802" args="(const QBrush &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::setBackgroundBrush           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const QBrush &amp;&nbsp;</td>          <td class="mdname1" valign="top" nowrap> <em>brush</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 background brush<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>brush</em>&nbsp;</td><td>Background brush </td></tr>  </table></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_text.html#46bb4836482e4fe554f5079871343ba6">backgroundBrush</a>, <a class="el" href="class_qwt_text.html#6532e0c5cdcfc16cd007427f3ddf60fb">setBackgroundPen</a> </dd></dl><p>Definition at line <a class="el" href="qwt__text_8cpp-source.html#l00377">377</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="6532e0c5cdcfc16cd007427f3ddf60fb"></a><!-- doxytag: member="QwtText::setBackgroundPen" ref="6532e0c5cdcfc16cd007427f3ddf60fb" args="(const QPen &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::setBackgroundPen           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const QPen &amp;&nbsp;</td>          <td class="mdname1" valign="top" nowrap> <em>pen</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 background pen<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>pen</em>&nbsp;</td><td>Background pen </td></tr>  </table></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_text.html#f1aecfe1c9321dad4b80465f6d1a0649">backgroundPen</a>, <a class="el" href="class_qwt_text.html#f016a747b234aede9f0cbbeb06ed2802">setBackgroundBrush</a> </dd></dl><p>Definition at line <a class="el" href="qwt__text_8cpp-source.html#l00356">356</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="c7de5839a5c3b1ee367cfbd5691aa105"></a><!-- doxytag: member="QwtText::setColor" ref="c7de5839a5c3b1ee367cfbd5691aa105" args="(const QColor &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::setColor           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const QColor &amp;&nbsp;</td>          <td class="mdname1" valign="top" nowrap> <em>color</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>

⌨️ 快捷键说明

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