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

📄 class_qwt_text_label.html

📁 QWT5.01用于Qt开发的二维图形库程序
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<p>Set label's text indent in pixels <dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign="top"></td><td valign="top"><em>indent</em>&nbsp;</td><td>Indentation in pixels </td></tr>  </table></dl><p>Definition at line <a class="el" href="qwt__text__label_8cpp-source.html#l00131">131</a> of file <a class="el" href="qwt__text__label_8cpp-source.html">qwt_text_label.cpp</a>.<p>Referenced by <a class="el" href="qwt__legend__item_8cpp-source.html#l00199">QwtLegendItem::setIdentfierWidth()</a>, and <a class="el" href="qwt__legend__item_8cpp-source.html#l00224">QwtLegendItem::setSpacing()</a>.    </td>  </tr></table><a class="anchor" name="833d27574b72bbc135f2972c72382eba"></a><!-- doxytag: member="QwtTextLabel::setMargin" ref="833d27574b72bbc135f2972c72382eba" args="(int)" --><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 QwtTextLabel::setMargin           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">int&nbsp;</td>          <td class="mdname1" valign="top" nowrap> <em>margin</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 label's margin in pixels <dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign="top"></td><td valign="top"><em>margin</em>&nbsp;</td><td>Margin in pixels </td></tr>  </table></dl><p>Definition at line <a class="el" href="qwt__text__label_8cpp-source.html#l00152">152</a> of file <a class="el" href="qwt__text__label_8cpp-source.html">qwt_text_label.cpp</a>.<p>Referenced by <a class="el" href="qwt__legend__item_8cpp-source.html#l00142">QwtLegendItem::setItemMode()</a>.    </td>  </tr></table><a class="anchor" name="c43ba313b78dccf7aa7433f26059b2e2"></a><!-- doxytag: member="QwtTextLabel::setText" ref="c43ba313b78dccf7aa7433f26059b2e2" 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">void QwtTextLabel::setText           </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> <em>text</em>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap><code> [virtual, slot]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Change the label's text <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>New text </td></tr>  </table></dl><p>Reimplemented in <a class="el" href="class_qwt_legend_item.html#8420c4d8cd73945a25697109df5c2f0e">QwtLegendItem</a>.<p>Definition at line <a class="el" href="qwt__text__label_8cpp-source.html#l00098">98</a> of file <a class="el" href="qwt__text__label_8cpp-source.html">qwt_text_label.cpp</a>.<p>References <a class="el" href="qwt__text__label_8cpp-source.html#l00107">text()</a>.    </td>  </tr></table><a class="anchor" name="b300b9a0a6392e180f2caff41ba2b9b8"></a><!-- doxytag: member="QwtTextLabel::setText" ref="b300b9a0a6392e180f2caff41ba2b9b8" args="(const QString &amp;, QwtText::TextFormat textFormat=QwtText::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 QwtTextLabel::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>QwtText::AutoText</code></td>        </tr>        <tr>          <td class="md"></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"><code> [slot]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Change the label's text, keeping all other <a class="el" href="class_qwt_text.html">QwtText</a> attributes <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>New text </td></tr>    <tr><td valign="top"></td><td valign="top"><em>textFormat</em>&nbsp;</td><td>Format of text</td></tr>  </table></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_text.html">QwtText</a> </dd></dl><p>Definition at line <a class="el" href="qwt__text__label_8cpp-source.html#l00086">86</a> of file <a class="el" href="qwt__text__label_8cpp-source.html">qwt_text_label.cpp</a>.<p>Referenced by <a class="el" href="qwt__legend__item_8cpp-source.html#l00120">QwtLegendItem::setText()</a>.    </td>  </tr></table><a class="anchor" name="0217bc022e6f3b2f22819c84d5867ae7"></a><!-- doxytag: member="QwtTextLabel::sizeHint" ref="0217bc022e6f3b2f22819c84d5867ae7" 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">QSize QwtTextLabel::sizeHint           </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> [virtual]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Return label's margin in pixels. <p><p>Reimplemented in <a class="el" href="class_qwt_legend_item.html#6248ff72fbbdf1997a590fb0a2d7088f">QwtLegendItem</a>.<p>Definition at line <a class="el" href="qwt__text__label_8cpp-source.html#l00161">161</a> of file <a class="el" href="qwt__text__label_8cpp-source.html">qwt_text_label.cpp</a>.<p>References <a class="el" href="qwt__text__label_8cpp-source.html#l00167">minimumSizeHint()</a>.<p>Referenced by <a class="el" href="qwt__legend__item_8cpp-source.html#l00526">QwtLegendItem::sizeHint()</a>.    </td>  </tr></table><a class="anchor" name="6ff4f9a87e11594740f312c8522f933e"></a><!-- doxytag: member="QwtTextLabel::text" ref="6ff4f9a87e11594740f312c8522f933e" 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">const <a class="el" href="class_qwt_text.html">QwtText</a> &amp; QwtTextLabel::text           </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>Return the text. <p><p>Definition at line <a class="el" href="qwt__text__label_8cpp-source.html#l00107">107</a> of file <a class="el" href="qwt__text__label_8cpp-source.html">qwt_text_label.cpp</a>.<p>Referenced by <a class="el" href="qwt__legend__item_8cpp-source.html#l00354">QwtLegendItem::drawItem()</a>, <a class="el" href="qwt__plot__print_8cpp-source.html#l00243">QwtPlot::printTitle()</a>, <a class="el" href="qwt__legend__item_8cpp-source.html#l00087">QwtLegendItem::QwtLegendItem()</a>, <a class="el" href="qwt__text__label_8cpp-source.html#l00060">QwtTextLabel()</a>, <a class="el" href="qwt__plot__printfilter_8cpp-source.html#l00366">QwtPlotPrintFilter::reset()</a>, <a class="el" href="qwt__text__label_8cpp-source.html#l00098">setText()</a>, and <a class="el" href="qwt__legend__item_8cpp-source.html#l00120">QwtLegendItem::setText()</a>.    </td>  </tr></table><a class="anchor" name="b4f9a18c47618903927fb2b40cbb06e2"></a><!-- doxytag: member="QwtTextLabel::textRect" ref="b4f9a18c47618903927fb2b40cbb06e2" 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">QRect QwtTextLabel::textRect           </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>Calculate the rect for the text in widget coordinates <dl compact><dt><b>Returns:</b></dt><dd>Text rect </dd></dl><p>Definition at line <a class="el" href="qwt__text__label_8cpp-source.html#l00279">279</a> of file <a class="el" href="qwt__text__label_8cpp-source.html">qwt_text_label.cpp</a>.<p>Referenced by <a class="el" href="qwt__text__label_8cpp-source.html#l00241">drawContents()</a>.    </td>  </tr></table><hr size="1"><address style="align: right;"><small>Generated on Mon Feb 26 21:26:11 2007 for Qwt User's Guide by&nbsp;<a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.6 </small></address></body></html>

⌨️ 快捷键说明

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