class_qwt_legend.html
来自「QWT5.01用于Qt开发的二维图形库程序」· HTML 代码 · 共 816 行 · 第 1/3 页
HTML
816 行
</td> <td><p>Insert a new item for a plot item <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>plotItem</em> </td><td>Plot item </td></tr> <tr><td valign="top"></td><td valign="top"><em>legendItem</em> </td><td>New legend item </td></tr> </table></dl><dl compact><dt><b>Note:</b></dt><dd>The parent of item will be changed to <a class="el" href="class_qwt_legend.html#a52edeceb553ae703516c984f34d7ab7">QwtLegend::contentsWidget()</a> </dd></dl><p>Definition at line <a class="el" href="qwt__legend_8cpp-source.html#l00386">386</a> of file <a class="el" href="qwt__legend_8cpp-source.html">qwt_legend.cpp</a>.<p>References <a class="el" href="qwt__legend_8cpp-source.html#l00355">contentsWidget()</a>.<p>Referenced by <a class="el" href="qwt__plot__item_8cpp-source.html#l00399">QwtPlotItem::updateLegend()</a>. </td> </tr></table><a class="anchor" name="6ff50cb1e388a7da2a59709eef83be20"></a><!-- doxytag: member="QwtLegend::isEmpty" ref="6ff50cb1e388a7da2a59709eef83be20" 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 QwtLegend::isEmpty </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap> const</td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Return true, if there are no legend items. <p><p>Definition at line <a class="el" href="qwt__legend_8cpp-source.html#l00617">617</a> of file <a class="el" href="qwt__legend_8cpp-source.html">qwt_legend.cpp</a>.<p>Referenced by <a class="el" href="qwt__plot__layout_8cpp-source.html#l01017">QwtPlotLayout::activate()</a>. </td> </tr></table><a class="anchor" name="c8d57d90bb41aa2d69c7411a20febdda"></a><!-- doxytag: member="QwtLegend::itemCount" ref="c8d57d90bb41aa2d69c7411a20febdda" 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">uint QwtLegend::itemCount </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap> const</td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Return the number of legend items. <p><p>Definition at line <a class="el" href="qwt__legend_8cpp-source.html#l00623">623</a> of file <a class="el" href="qwt__legend_8cpp-source.html">qwt_legend.cpp</a>. </td> </tr></table><a class="anchor" name="c44118481db62143950a7c74bc2832ab"></a><!-- doxytag: member="QwtLegend::layoutContents" ref="c44118481db62143950a7c74bc2832ab" 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">void QwtLegend::layoutContents </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap><code> [protected, virtual]</code></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Adjust contents widget and item layout to the size of the viewport(). <p>Definition at line <a class="el" href="qwt__legend_8cpp-source.html#l00543">543</a> of file <a class="el" href="qwt__legend_8cpp-source.html">qwt_legend.cpp</a>.<p>Referenced by <a class="el" href="qwt__legend_8cpp-source.html#l00578">eventFilter()</a>. </td> </tr></table><a class="anchor" name="330345b54cbe7be630d55ee9ad31b3b4"></a><!-- doxytag: member="QwtLegend::remove" ref="330345b54cbe7be630d55ee9ad31b3b4" args="(const QwtPlotItem *)" --><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 QwtLegend::remove </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const <a class="el" href="class_qwt_plot_item.html">QwtPlotItem</a> * </td> <td class="mdname1" valign="top" nowrap> <em>plotItem</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Find the corresponding item for a plotItem and remove it from the item list.<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>plotItem</em> </td><td>Plot item </td></tr> </table></dl><p>Definition at line <a class="el" href="qwt__legend_8cpp-source.html#l00482">482</a> of file <a class="el" href="qwt__legend_8cpp-source.html">qwt_legend.cpp</a>. </td> </tr></table><a class="anchor" name="17c7054748f953e6e315068d7f6b39be"></a><!-- doxytag: member="QwtLegend::resizeEvent" ref="17c7054748f953e6e315068d7f6b39be" args="(QResizeEvent *)" --><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 QwtLegend::resizeEvent </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">QResizeEvent * </td> <td class="mdname1" valign="top" nowrap> <em>e</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap><code> [protected, virtual]</code></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Resize event <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>e</em> </td><td>Event </td></tr> </table></dl><p>Definition at line <a class="el" href="qwt__legend_8cpp-source.html#l00654">654</a> of file <a class="el" href="qwt__legend_8cpp-source.html">qwt_legend.cpp</a>. </td> </tr></table><a class="anchor" name="37846930eba18ab0d9490a7425ef08d8"></a><!-- doxytag: member="QwtLegend::setDisplayPolicy" ref="37846930eba18ab0d9490a7425ef08d8" args="(LegendDisplayPolicy policy, int mode)" --><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 QwtLegend::setDisplayPolicy </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="class_qwt_legend.html#898db0483371da91c694c34502f09ecd">LegendDisplayPolicy</a> </td> <td class="mdname" nowrap> <em>policy</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>int </td> <td class="mdname" nowrap> <em>mode</em></td> </tr> <tr> <td class="md"></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Set the legend display policy to:<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>policy</em> </td><td>Legend display policy </td></tr> <tr><td valign="top"></td><td valign="top"><em>mode</em> </td><td>Identifier mode (or'd ShowLine, ShowSymbol, ShowText)</td></tr> </table></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_legend.html#a74ccc6083345a1517ffbb86356f7ba0">displayPolicy</a>, <a class="el" href="class_qwt_legend.html#898db0483371da91c694c34502f09ecd">LegendDisplayPolicy</a> </dd></dl><p>Definition at line <a class="el" href="qwt__legend_8cpp-source.html#l00296">296</a> of file <a class="el" href="qwt__legend_8cpp-source.html">qwt_legend.cpp</a>.<p>References <a class="el" href="qwt__plot__item_8cpp-source.html#l00399">QwtPlotItem::updateLegend()</a>. </td> </tr></table><a class="anchor" name="2517a7d9d78ab7a3892125ecf755f33f"></a><!-- doxytag: member="QwtLegend::sizeHint" ref="2517a7d9d78ab7a3892125ecf755f33f" 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 QwtLegend::sizeHint </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap> const<code> [virtual]</code></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Return a size hint. <p><p>Definition at line <a class="el" href="qwt__legend_8cpp-source.html#l00506">506</a> of file <a class="el" href="qwt__legend_8cpp-source.html">qwt_legend.cpp</a>. </td> </tr></table><hr size="1"><address style="align: right;"><small>Generated on Mon Feb 26 21:23:58 2007 for Qwt User's Guide by <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 + =
减小字号Ctrl + -
显示快捷键?