class_qwt_legend.html
来自「QWT5.01用于Qt开发的二维图形库程序」· HTML 代码 · 共 816 行 · 第 1/3 页
HTML
816 行
<p>Definition at line <a class="el" href="qwt__legend_8cpp-source.html#l00490">490</a> of file <a class="el" href="qwt__legend_8cpp-source.html">qwt_legend.cpp</a>. </td> </tr></table><a class="anchor" name="cd680c0f17f4184e10a3d3136b9836f5"></a><!-- doxytag: member="QwtLegend::contentsWidget" ref="cd680c0f17f4184e10a3d3136b9836f5" 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 QWidget * QwtLegend::contentsWidget </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>The contents widget is the only child of the viewport() and the parent widget of all legend items. <p>Definition at line <a class="el" href="qwt__legend_8cpp-source.html#l00375">375</a> of file <a class="el" href="qwt__legend_8cpp-source.html">qwt_legend.cpp</a>. </td> </tr></table><a class="anchor" name="a52edeceb553ae703516c984f34d7ab7"></a><!-- doxytag: member="QwtLegend::contentsWidget" ref="a52edeceb553ae703516c984f34d7ab7" 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">QWidget * QwtLegend::contentsWidget </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </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>The contents widget is the only child of the viewport() and the parent widget of all legend items. <p>Definition at line <a class="el" href="qwt__legend_8cpp-source.html#l00355">355</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#l00386">insert()</a>, and <a class="el" href="qwt__plot__print_8cpp-source.html#l00267">QwtPlot::printLegend()</a>. </td> </tr></table><a class="anchor" name="a74ccc6083345a1517ffbb86356f7ba0"></a><!-- doxytag: member="QwtLegend::displayPolicy" ref="a74ccc6083345a1517ffbb86356f7ba0" 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"><a class="el" href="class_qwt_legend.html#898db0483371da91c694c34502f09ecd">QwtLegend::LegendDisplayPolicy</a> QwtLegend::displayPolicy </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><dl compact><dt><b>Returns:</b></dt><dd>the legend display policy. Default is LegendDisplayPolicy::Auto. </dd></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_legend.html#37846930eba18ab0d9490a7425ef08d8">setDisplayPolicy</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#l00324">324</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__curve_8cpp-source.html#l01240">QwtPlotCurve::updateLegend()</a>. </td> </tr></table><a class="anchor" name="c370a54c9fd76338c5bfc31f0ae07736"></a><!-- doxytag: member="QwtLegend::find" ref="c370a54c9fd76338c5bfc31f0ae07736" args="(const QWidget *) 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"><a class="el" href="class_qwt_plot_item.html">QwtPlotItem</a> * QwtLegend::find </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const QWidget * </td> <td class="mdname1" valign="top" nowrap> <em>legendItem</em> </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>Find the widget that represents a plot item<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><dl compact><dt><b>Returns:</b></dt><dd>Widget on the legend, or NULL </dd></dl><p>Definition at line <a class="el" href="qwt__legend_8cpp-source.html#l00471">471</a> of file <a class="el" href="qwt__legend_8cpp-source.html">qwt_legend.cpp</a>. </td> </tr></table><a class="anchor" name="ae136e8199d5a3caf86a7767c1de186c"></a><!-- doxytag: member="QwtLegend::find" ref="ae136e8199d5a3caf86a7767c1de186c" args="(const QwtPlotItem *) 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">QWidget * QwtLegend::find </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> const</td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Find the widget that represents a plot item<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><dl compact><dt><b>Returns:</b></dt><dd>Widget on the legend, or NULL </dd></dl><p>Definition at line <a class="el" href="qwt__legend_8cpp-source.html#l00460">460</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__item_8cpp-source.html#l00399">QwtPlotItem::updateLegend()</a>, and <a class="el" href="qwt__plot__curve_8cpp-source.html#l01240">QwtPlotCurve::updateLegend()</a>. </td> </tr></table><a class="anchor" name="273ec258209c42f57b154ff4da61e1d0"></a><!-- doxytag: member="QwtLegend::heightForWidth" ref="273ec258209c42f57b154ff4da61e1d0" args="(int w) 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 QwtLegend::heightForWidth </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">int </td> <td class="mdname1" valign="top" nowrap> <em>width</em> </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><dl compact><dt><b>Returns:</b></dt><dd>The preferred height, for the width w. </dd></dl><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>width</em> </td><td>Width </td></tr> </table></dl><p>Definition at line <a class="el" href="qwt__legend_8cpp-source.html#l00518">518</a> of file <a class="el" href="qwt__legend_8cpp-source.html">qwt_legend.cpp</a>. </td> </tr></table><a class="anchor" name="a0d1126ccd9f65b0926ce7c802f74e6a"></a><!-- doxytag: member="QwtLegend::identifierMode" ref="a0d1126ccd9f65b0926ce7c802f74e6a" 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 QwtLegend::identifierMode </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><dl compact><dt><b>Returns:</b></dt><dd>the IdentifierMode to be used in combination with LegendDisplayPolicy::Fixed.</dd></dl>Default is ShowLine | ShowSymbol | ShowText. <p>Definition at line <a class="el" href="qwt__legend_8cpp-source.html#l00346">346</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__curve_8cpp-source.html#l01240">QwtPlotCurve::updateLegend()</a>. </td> </tr></table><a class="anchor" name="54456bf97e80da5bfb4cca91367b8e15"></a><!-- doxytag: member="QwtLegend::insert" ref="54456bf97e80da5bfb4cca91367b8e15" args="(const QwtPlotItem *, QWidget *)" --><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::insert </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="mdname" nowrap> <em>plotItem</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>QWidget * </td> <td class="mdname" nowrap> <em>legendItem</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>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?