109 Q_PROPERTY(
bool isEnabled READ isEnabled WRITE setEnabled )
110 Q_PROPERTY( ResizeMode resizeMode READ resizeMode WRITE setResizeMode )
112 Q_PROPERTY(
DisplayMode trackerMode READ trackerMode WRITE setTrackerMode )
113 Q_PROPERTY( QPen trackerPen READ trackerPen WRITE setTrackerPen )
114 Q_PROPERTY( QFont trackerFont READ trackerFont WRITE setTrackerFont )
116 Q_PROPERTY(
RubberBand rubberBand READ rubberBand WRITE setRubberBand )
117 Q_PROPERTY( QPen rubberBandPen READ rubberBandPen WRITE setRubberBandPen )
209 void setRubberBandPen(
const QPen& );
210 QPen rubberBandPen()
const;
212 void setTrackerPen(
const QPen& );
213 QPen trackerPen()
const;
215 void setTrackerFont(
const QFont& );
216 QFont trackerFont()
const;
218 bool isEnabled()
const;
219 bool isActive()
const;
221 virtual bool eventFilter( QObject*, QEvent* )
QWT_OVERRIDE;
223 QWidget* parentWidget();
224 const QWidget* parentWidget()
const;
226 virtual QPainterPath pickArea()
const;
228 virtual void drawRubberBand( QPainter* )
const;
229 virtual void drawTracker( QPainter* )
const;
231 virtual QRegion trackerMask()
const;
232 virtual QRegion rubberBandMask()
const;
234 virtual QwtText trackerText(
const QPoint& pos )
const;
235 QPoint trackerPosition()
const;
236 virtual QRect trackerRect(
const QFont& )
const;
238 QPolygon selection()
const;
241 void setEnabled(
bool );
251 void activated(
bool on );
259 void selected(
const QPolygon& polygon );
267 void appended(
const QPoint& pos );
276 void moved(
const QPoint& pos );
285 void removed(
const QPoint& pos );
293 void changed(
const QPolygon& selection );
296 virtual QPolygon adjustedPoints(
const QPolygon& )
const;
298 virtual void transition(
const QEvent* );
300 virtual void begin();
301 virtual void append(
const QPoint& );
302 virtual void move(
const QPoint& );
303 virtual void remove();
304 virtual bool end(
bool ok =
true );
306 virtual bool accept( QPolygon& )
const;
307 virtual void reset();
309 virtual void widgetMousePressEvent( QMouseEvent* );
310 virtual void widgetMouseReleaseEvent( QMouseEvent* );
311 virtual void widgetMouseDoubleClickEvent( QMouseEvent* );
312 virtual void widgetMouseMoveEvent( QMouseEvent* );
313 virtual void widgetWheelEvent( QWheelEvent* );
314 virtual void widgetKeyPressEvent( QKeyEvent* );
315 virtual void widgetKeyReleaseEvent( QKeyEvent* );
316 virtual void widgetEnterEvent( QEvent* );
317 virtual void widgetLeaveEvent( QEvent* );
319 virtual void stretchSelection(
320 const QSize& oldSize,
const QSize& newSize );
322 virtual void updateDisplay();
327 const QPolygon& pickedPoints()
const;
332 void setMouseTracking(
bool );
A crosshair ( only for QwtPickerMachine::PointSelection )
void init(const M_string &remappings)
All points are scaled according to the new size,.
A polygon ( only for QwtPickerMachine::PolygonSelection )
An ellipse ( only for QwtPickerMachine::RectSelection )
A class representing a text.
A state machine for QwtPicker selections.
A horizontal line ( only for QwtPickerMachine::PointSelection )
const T & move(const T &v)
A collection of event patterns.
A rectangle ( only for QwtPickerMachine::RectSelection )
A vertical line ( only for QwtPickerMachine::PointSelection )
QCXXHighlighter::QCXXHighlighter(QTextDocument *document) m_highlightRule append)({ QRegularExpression(R"(#[a-zA-Z_]+)"), "Preprocessor" })
QwtPicker provides selections on a widget.