20 #include <qpainterpath.h> 101 Q_PROPERTY(
bool isEnabled READ isEnabled WRITE setEnabled )
102 Q_PROPERTY( ResizeMode resizeMode READ resizeMode WRITE setResizeMode )
104 Q_PROPERTY(
DisplayMode trackerMode READ trackerMode WRITE setTrackerMode )
105 Q_PROPERTY( QPen trackerPen READ trackerPen WRITE setTrackerPen )
106 Q_PROPERTY( QFont trackerFont READ trackerFont WRITE setTrackerFont )
108 Q_PROPERTY(
RubberBand rubberBand READ rubberBand WRITE setRubberBand )
109 Q_PROPERTY( QPen rubberBandPen READ rubberBandPen WRITE setRubberBandPen )
201 void setRubberBandPen(
const QPen & );
202 QPen rubberBandPen()
const;
204 void setTrackerPen(
const QPen & );
205 QPen trackerPen()
const;
207 void setTrackerFont(
const QFont & );
208 QFont trackerFont()
const;
210 bool isEnabled()
const;
211 bool isActive()
const;
213 virtual bool eventFilter( QObject *, QEvent * );
215 QWidget *parentWidget();
216 const QWidget *parentWidget()
const;
218 virtual QPainterPath pickArea()
const;
220 virtual void drawRubberBand( QPainter * )
const;
221 virtual void drawTracker( QPainter * )
const;
223 virtual QRegion trackerMask()
const;
224 virtual QRegion rubberBandMask()
const;
226 virtual QwtText trackerText(
const QPoint &pos )
const;
227 QPoint trackerPosition()
const;
228 virtual QRect trackerRect(
const QFont & )
const;
230 QPolygon selection()
const;
233 void setEnabled(
bool );
243 void activated(
bool on );
251 void selected(
const QPolygon &polygon );
259 void appended(
const QPoint &pos );
268 void moved(
const QPoint &pos );
277 void removed(
const QPoint &pos );
285 void changed(
const QPolygon &selection );
288 virtual QPolygon adjustedPoints(
const QPolygon & )
const;
290 virtual void transition(
const QEvent * );
292 virtual void begin();
293 virtual void append(
const QPoint & );
294 virtual void move(
const QPoint & );
295 virtual void remove();
296 virtual bool end(
bool ok =
true );
298 virtual bool accept( QPolygon & )
const;
299 virtual void reset();
301 virtual void widgetMousePressEvent( QMouseEvent * );
302 virtual void widgetMouseReleaseEvent( QMouseEvent * );
303 virtual void widgetMouseDoubleClickEvent( QMouseEvent * );
304 virtual void widgetMouseMoveEvent( QMouseEvent * );
305 virtual void widgetWheelEvent( QWheelEvent * );
306 virtual void widgetKeyPressEvent( QKeyEvent * );
307 virtual void widgetKeyReleaseEvent( QKeyEvent * );
308 virtual void widgetEnterEvent( QEvent * );
309 virtual void widgetLeaveEvent( QEvent * );
311 virtual void stretchSelection(
const QSize &oldSize,
312 const QSize &newSize );
314 virtual void updateDisplay();
319 const QPolygon &pickedPoints()
const;
324 void setMouseTracking(
bool );
A crosshair ( only for QwtPickerMachine::PointSelection )
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 )
A collection of event patterns.
A rectangle ( only for QwtPickerMachine::RectSelection )
ROSCPP_DECL std::string append(const std::string &left, const std::string &right)
A vertical line ( only for QwtPickerMachine::PointSelection )
constexpr absl::remove_reference_t< T > && move(T &&t) noexcept
QwtPicker provides selections on a widget.