📄 class_qwt_picker.html
字号:
<td> </td> <td><p>A signal emitted when a point has been appended to the selection<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>pos</em> </td><td>Position of the appended point. </td></tr> </table></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_picker.html#5dd2e0ce6b2a6cc50e345ec13aef9255">append()</a>. <a class="el" href="class_qwt_picker.html#dddb4800c1dac0ba807e731f45d40742">moved()</a> </dd></dl><p>Referenced by <a class="el" href="qwt__picker_8cpp-source.html#l01143">append()</a>. </td> </tr></table><a class="anchor" name="49cb19aea451e275c5d376235e5a1d83"></a><!-- doxytag: member="QwtPicker::begin" ref="49cb19aea451e275c5d376235e5a1d83" 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 QwtPicker::begin </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>Open a selection setting the state to active<p><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_picker.html#f825f383c74928d1541f139e102983f9">isActive</a>, <a class="el" href="class_qwt_picker.html#d258c518257cf2f52326905a36efb0c4">end()</a>, <a class="el" href="class_qwt_picker.html#5dd2e0ce6b2a6cc50e345ec13aef9255">append()</a>, <a class="el" href="class_qwt_picker.html#59d92670978f200edb61e429afa06542">move()</a> </dd></dl><p>Reimplemented in <a class="el" href="class_qwt_plot_zoomer.html#a54bb05797c0468c0f8de4217dce24dd">QwtPlotZoomer</a>.<p>Definition at line <a class="el" href="qwt__picker_8cpp-source.html#l01076">1076</a> of file <a class="el" href="qwt__picker_8cpp-source.html">qwt_picker.cpp</a>.<p>References <a class="el" href="qwt__picker_8cpp-source.html#l00312">parentWidget()</a>, and <a class="el" href="qwt__picker_8cpp-source.html#l00407">trackerMode()</a>. </td> </tr></table><a class="anchor" name="dc25f36804c8a9fe24bb8640a73c4051"></a><!-- doxytag: member="QwtPicker::changed" ref="dc25f36804c8a9fe24bb8640a73c4051" args="(const QwtPolygon &pa)" --><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 QwtPicker::changed </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const QwtPolygon & </td> <td class="mdname1" valign="top" nowrap> <em>pa</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap><code> [signal]</code></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>A signal emitted when the active selection has been changed. This might happen when the observed widget is resized.<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>pa</em> </td><td>Changed selection </td></tr> </table></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_picker.html#24b0e4bcf6a9b7f41c81ea19305105a8">stretchSelection()</a> </dd></dl><p>Referenced by <a class="el" href="qwt__picker_8cpp-source.html#l01213">stretchSelection()</a>. </td> </tr></table><a class="anchor" name="4848b0a4ca94d4160fdcf29c73982bef"></a><!-- doxytag: member="QwtPicker::drawRubberBand" ref="4848b0a4ca94d4160fdcf29c73982bef" args="(QPainter *) 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 QwtPicker::drawRubberBand </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">QPainter * </td> <td class="mdname1" valign="top" nowrap> <em>painter</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>Draw a rubberband , depending on <a class="el" href="class_qwt_picker.html#6a7af18636587af2c11a6c060929403a">rubberBand()</a> and <a class="el" href="class_qwt_picker.html#d8e6fc50cd841e543a359c099024c448">selectionFlags()</a><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> </td><td>Painter, initialized with clip rect</td></tr> </table></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_picker.html#6a7af18636587af2c11a6c060929403a">rubberBand()</a>, <a class="el" href="class_qwt_picker.html#b36c79d8ff20aba5b778d2823c1f7894">RubberBand</a>, <a class="el" href="class_qwt_picker.html#d8e6fc50cd841e543a359c099024c448">selectionFlags()</a> </dd></dl><p>Definition at line <a class="el" href="qwt__picker_8cpp-source.html#l00591">591</a> of file <a class="el" href="qwt__picker_8cpp-source.html">qwt_picker.cpp</a>.<p>References <a class="el" href="qwt__painter_8cpp-source.html#l00294">QwtPainter::drawEllipse()</a>, <a class="el" href="qwt__painter_8cpp-source.html#l00437">QwtPainter::drawLine()</a>, <a class="el" href="qwt__painter_8cpp-source.html#l00176">QwtPainter::drawRect()</a>, <a class="el" href="qwt__picker_8cpp-source.html#l01193">isActive()</a>, <a class="el" href="qwt__picker_8cpp-source.html#l01265">pickRect()</a>, <a class="el" href="qwt__picker_8cpp-source.html#l00373">rubberBand()</a>, <a class="el" href="qwt__picker_8cpp-source.html#l00547">rubberBandPen()</a>, and <a class="el" href="qwt__picker_8cpp-source.html#l00351">selectionFlags()</a>. </td> </tr></table><a class="anchor" name="74c471c27ced5e7a5d59455bcd7d8290"></a><!-- doxytag: member="QwtPicker::drawTracker" ref="74c471c27ced5e7a5d59455bcd7d8290" args="(QPainter *) 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 QwtPicker::drawTracker </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">QPainter * </td> <td class="mdname1" valign="top" nowrap> <em>painter</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>Draw the tracker<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> </td><td>Painter </td></tr> </table></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_picker.html#12ca49ce032609973efc6f261078d1e3">trackerRect()</a>, <a class="el" href="class_qwt_picker.html#48ab7695edfa22df80490bf930f16cc4">trackerText()</a> </dd></dl><p>Definition at line <a class="el" href="qwt__picker_8cpp-source.html#l00686">686</a> of file <a class="el" href="qwt__picker_8cpp-source.html">qwt_picker.cpp</a>.<p>References <a class="el" href="qwt__picker_8cpp-source.html#l00717">trackerRect()</a>, <a class="el" href="qwt__picker_8cpp-source.html#l00565">trackerText()</a>, and <a class="el" href="qwt__text_8cpp-source.html#l00308">QwtText::usedFont()</a>. </td> </tr></table><a class="anchor" name="d258c518257cf2f52326905a36efb0c4"></a><!-- doxytag: member="QwtPicker::end" ref="d258c518257cf2f52326905a36efb0c4" args="(bool ok=true)" --><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 QwtPicker::end </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">bool </td> <td class="mdname1" valign="top" nowrap> <em>ok</em> = <code>true</code> </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>Close a selection setting the state to inactive. <p>The selection is validated and maybe fixed by <a class="el" href="class_qwt_picker.html#c59b7fde6b198f76ea91b4b1a4015af5">QwtPicker::accept()</a>.<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>ok</em> </td><td>If true, complete the selection and emit a selected signal otherwise discard the selection. </td></tr> </table></dl><dl compact><dt><b>Returns:</b></dt><dd>true if the selection is accepted, false otherwise </dd></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_picker.html#f825f383c74928d1541f139e102983f9">isActive</a>, <a class="el" href="class_qwt_picker.html#49cb19aea451e275c5d376235e5a1d83">begin()</a>, <a class="el" href="class_qwt_picker.html#5dd2e0ce6b2a6cc50e345ec13aef9255">append()</a>, <a class="el" href="class_qwt_picker.html#59d92670978f200edb61e429afa06542">move()</a>, <a class="el" href="class_qwt_picker.html#dc217b13621f291dd2ba081e2c28e4f4">selected()</a>, <a class="el" href="class_qwt_picker.html#c59b7fde6b198f76ea91b4b1a4015af5">accept()</a> </dd></dl><p>Reimplemented in <a class="el" href="class_qwt_plot_picker.html#9fceb663542b6f9b0a358e9419406423">QwtPlotPicker</a>, and <a class="el" href="class_qwt_plot_zoomer.html#c7d10eb27858ccfebebecab5d69ecbb3">QwtPlotZoomer</a>.<p>Definition at line <a class="el" href="qwt__picker_8cpp-source.html#l01108">1108</a> of file <a class="el" href="qwt__picker_8cpp-source.html">qwt_picker.cpp</a>.<p>References <a class="el" href="qwt__picker_8cpp-source.html#l01184">accept()</a>, <a class="el" href="class_qwt_picker.html#dc217b13621f291dd2ba081e2c28e4f4">selected()</a>, <a class="el" href="qwt__picker_8cpp-source.html#l00407">trackerMode()</a>, and <a class="el" href="qwt__picker_8cpp-source.html#l01281">updateDisplay()</a>.<p>Referenced by <a class="el" href="qwt__plot__picker_8cpp-source.html#l00273">QwtPlotPicker::end()</a>, and <a class="el" href="qwt__picker_8cpp-source.html#l00953">widgetKeyPressEvent()</a>. </td> </tr></table><a class="anchor" name="c149f9cb8fb068f31871e1fe450c376e"></a><!-- doxytag: member="QwtPicker::eventFilter" ref="c149f9cb8fb068f31871e1fe450c376e" args="(QObject *, QEvent *)" --><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 QwtPicker::eventFilter </td> <td class="md" valign="top">( </td>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -