📄 class_qwt_picker.html
字号:
<td class="md" nowrap valign="top">QObject * </td> <td class="mdname" nowrap> <em>o</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>QEvent * </td> <td class="mdname" nowrap> <em>e</em></td> </tr> <tr> <td class="md"></td> <td class="md">) </td> <td class="md" colspan="2"><code> [virtual]</code></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Event filter. <p>When <a class="el" href="class_qwt_picker.html#984299a27421d57291bb84c8c08df4e5">isEnabled()</a> == true all events of the observed widget are filtered. Mouse and keyboard events are translated into widgetMouse- and widgetKey- and widgetWheel-events. Paint and Resize events are handled to keep rubberband and tracker up to date.<p><dl compact><dt><b>See also:</b></dt><dd>event(), <a class="el" href="class_qwt_picker.html#4bfae8da37c3936ae73d4798cca4a3d9">widgetMousePressEvent()</a>, <a class="el" href="class_qwt_picker.html#c009633e005b6290e07b902f2a58e45e">widgetMouseReleaseEvent()</a>, <a class="el" href="class_qwt_picker.html#f1ffb07c24be57cd4a753b04412b3212">widgetMouseDoubleClickEvent()</a>, <a class="el" href="class_qwt_picker.html#88b203109a4d3b26c2e0bee110c56c9d">widgetMouseMoveEvent()</a>, <a class="el" href="class_qwt_picker.html#f92ffabe291a6254378dc932c5cce0a7">widgetWheelEvent()</a>, <a class="el" href="class_qwt_picker.html#f5bc441b2fc143363563922a3b3c70ae">widgetKeyPressEvent()</a>, <a class="el" href="class_qwt_picker.html#9f2c739a619be794b22a10ede9674a1e">widgetKeyReleaseEvent()</a> </dd></dl><p>Definition at line <a class="el" href="qwt__picker_8cpp-source.html#l00788">788</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>, <a class="el" href="qwt__picker_8cpp-source.html#l01213">stretchSelection()</a>, <a class="el" href="qwt__picker_8cpp-source.html#l00953">widgetKeyPressEvent()</a>, <a class="el" href="qwt__picker_8cpp-source.html#l01007">widgetKeyReleaseEvent()</a>, <a class="el" href="qwt__picker_8cpp-source.html#l00882">widgetLeaveEvent()</a>, <a class="el" href="qwt__picker_8cpp-source.html#l00913">widgetMouseDoubleClickEvent()</a>, <a class="el" href="qwt__picker_8cpp-source.html#l00862">widgetMouseMoveEvent()</a>, <a class="el" href="qwt__picker_8cpp-source.html#l00848">widgetMousePressEvent()</a>, <a class="el" href="qwt__picker_8cpp-source.html#l00899">widgetMouseReleaseEvent()</a>, and <a class="el" href="qwt__picker_8cpp-source.html#l00928">widgetWheelEvent()</a>. </td> </tr></table><a class="anchor" name="f825f383c74928d1541f139e102983f9"></a><!-- doxytag: member="QwtPicker::isActive" ref="f825f383c74928d1541f139e102983f9" 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 QwtPicker::isActive </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>A picker is active between <a class="el" href="class_qwt_picker.html#49cb19aea451e275c5d376235e5a1d83">begin()</a> and <a class="el" href="class_qwt_picker.html#d258c518257cf2f52326905a36efb0c4">end()</a>. <dl compact><dt><b>Returns:</b></dt><dd>true if the selection is active. </dd></dl><p>Definition at line <a class="el" href="qwt__picker_8cpp-source.html#l01193">1193</a> of file <a class="el" href="qwt__picker_8cpp-source.html">qwt_picker.cpp</a>.<p>Referenced by <a class="el" href="qwt__picker_8cpp-source.html#l00591">drawRubberBand()</a>, <a class="el" href="qwt__picker_8cpp-source.html#l00717">trackerRect()</a>, <a class="el" href="qwt__picker_8cpp-source.html#l01281">updateDisplay()</a>, <a class="el" href="qwt__plot__zoomer_8cpp-source.html#l00429">QwtPlotZoomer::widgetKeyPressEvent()</a>, <a class="el" href="qwt__picker_8cpp-source.html#l00953">widgetKeyPressEvent()</a>, <a class="el" href="qwt__picker_8cpp-source.html#l00882">widgetLeaveEvent()</a>, and <a class="el" href="qwt__picker_8cpp-source.html#l00862">widgetMouseMoveEvent()</a>. </td> </tr></table><a class="anchor" name="984299a27421d57291bb84c8c08df4e5"></a><!-- doxytag: member="QwtPicker::isEnabled" ref="984299a27421d57291bb84c8c08df4e5" 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 QwtPicker::isEnabled </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>true when enabled, false otherwise </dd></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_picker.html#a590756369efae6ebf323302a0af5d36">setEnabled</a>, <a class="el" href="class_qwt_picker.html#c149f9cb8fb068f31871e1fe450c376e">eventFilter()</a> </dd></dl><p>Definition at line <a class="el" href="qwt__picker_8cpp-source.html#l00474">474</a> of file <a class="el" href="qwt__picker_8cpp-source.html">qwt_picker.cpp</a>. </td> </tr></table><a class="anchor" name="59d92670978f200edb61e429afa06542"></a><!-- doxytag: member="QwtPicker::move" ref="59d92670978f200edb61e429afa06542" args="(const QPoint &)" --><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::move </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const QPoint & </td> <td class="mdname1" valign="top" nowrap> <em>pos</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>Move the last point of the selection The <a class="el" href="class_qwt_picker.html#dddb4800c1dac0ba807e731f45d40742">moved()</a> signal is emitted.<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>New position </td></tr> </table></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#d258c518257cf2f52326905a36efb0c4">end()</a>, <a class="el" href="class_qwt_picker.html#5dd2e0ce6b2a6cc50e345ec13aef9255">append()</a> </dd></dl><p>Reimplemented in <a class="el" href="class_qwt_plot_picker.html#7a979d23cd4d398e309409e76635bcf4">QwtPlotPicker</a>.<p>Definition at line <a class="el" href="qwt__picker_8cpp-source.html#l01165">1165</a> of file <a class="el" href="qwt__picker_8cpp-source.html">qwt_picker.cpp</a>.<p>References <a class="el" href="class_qwt_picker.html#dddb4800c1dac0ba807e731f45d40742">moved()</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#l00259">QwtPlotPicker::move()</a>. </td> </tr></table><a class="anchor" name="dddb4800c1dac0ba807e731f45d40742"></a><!-- doxytag: member="QwtPicker::moved" ref="dddb4800c1dac0ba807e731f45d40742" args="(const QPoint &pos)" --><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::moved </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const QPoint & </td> <td class="mdname1" valign="top" nowrap> <em>pos</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 whenever the last appended point of the selection has been moved.<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 moved last point of the selection. </td></tr> </table></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_picker.html#59d92670978f200edb61e429afa06542">move()</a>, <a class="el" href="class_qwt_picker.html#d52219271a7c8efab35ded14ac89827a">appended()</a> </dd></dl><p>Referenced by <a class="el" href="qwt__picker_8cpp-source.html#l01165">move()</a>. </td> </tr></table><a class="anchor" name="250dc5daf40a049f8db1f7ed730802d3"></a><!-- doxytag: member="QwtPicker::parentWidget" ref="250dc5daf40a049f8db1f7ed730802d3" 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 * QwtPicker::parentWidget </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 parent widget, where the selection happens. <p><p>Definition at line <a class="el" href="qwt__picker_8cpp-source.html#l00322">322</a> of file <a class="el" href="qwt__picker_8cpp-source.html">qwt_picker.cpp</a>. </td> </tr></table><a class="anchor" name="da0c12257e006f0066d22c3eb83f667e"></a><!-- doxytag: member="QwtPicker::parentWidget" ref="da0c12257e006f0066d22c3eb83f667e" args="()" --><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowra
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -