ifw  0.0.1-dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Signals | Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
QCPSelectionRect Class Reference

Provides rect/rubber-band data selection and range zoom interaction. More...

#include <qcustomplot.h>

Inheritance diagram for QCPSelectionRect:
QCPLayerable QCPLayerable QCPLayerable QCPLayerable QCPLayerable

Signals

void started (QMouseEvent *event)
 
void changed (const QRect &rect, QMouseEvent *event)
 
void canceled (const QRect &rect, QInputEvent *event)
 
void accepted (const QRect &rect, QMouseEvent *event)
 
void started (QMouseEvent *event)
 
void changed (const QRect &rect, QMouseEvent *event)
 
void canceled (const QRect &rect, QInputEvent *event)
 
void accepted (const QRect &rect, QMouseEvent *event)
 
void started (QMouseEvent *event)
 
void changed (const QRect &rect, QMouseEvent *event)
 
void canceled (const QRect &rect, QInputEvent *event)
 
void accepted (const QRect &rect, QMouseEvent *event)
 
void started (QMouseEvent *event)
 
void changed (const QRect &rect, QMouseEvent *event)
 
void canceled (const QRect &rect, QInputEvent *event)
 
void accepted (const QRect &rect, QMouseEvent *event)
 
void started (QMouseEvent *event)
 
void changed (const QRect &rect, QMouseEvent *event)
 
void canceled (const QRect &rect, QInputEvent *event)
 
void accepted (const QRect &rect, QMouseEvent *event)
 
- Signals inherited from QCPLayerable
void layerChanged (QCPLayer *newLayer)
 
void layerChanged (QCPLayer *newLayer)
 
void layerChanged (QCPLayer *newLayer)
 
void layerChanged (QCPLayer *newLayer)
 
void layerChanged (QCPLayer *newLayer)
 

Public Member Functions

 QCPSelectionRect (QCustomPlot *parentPlot)
 
virtual ~QCPSelectionRect ()
 
QRect rect () const
 
QCPRange range (const QCPAxis *axis) const
 
QPen pen () const
 
QBrush brush () const
 
bool isActive () const
 
void setPen (const QPen &pen)
 
void setBrush (const QBrush &brush)
 
Q_SLOT void cancel ()
 
 QCPSelectionRect (QCustomPlot *parentPlot)
 
virtual ~QCPSelectionRect ()
 
QRect rect () const
 
QCPRange range (const QCPAxis *axis) const
 
QPen pen () const
 
QBrush brush () const
 
bool isActive () const
 
void setPen (const QPen &pen)
 
void setBrush (const QBrush &brush)
 
Q_SLOT void cancel ()
 
 QCPSelectionRect (QCustomPlot *parentPlot)
 
virtual ~QCPSelectionRect ()
 
QRect rect () const
 
QCPRange range (const QCPAxis *axis) const
 
QPen pen () const
 
QBrush brush () const
 
bool isActive () const
 
void setPen (const QPen &pen)
 
void setBrush (const QBrush &brush)
 
Q_SLOT void cancel ()
 
 QCPSelectionRect (QCustomPlot *parentPlot)
 
virtual ~QCPSelectionRect ()
 
QRect rect () const
 
QCPRange range (const QCPAxis *axis) const
 
QPen pen () const
 
QBrush brush () const
 
bool isActive () const
 
void setPen (const QPen &pen)
 
void setBrush (const QBrush &brush)
 
Q_SLOT void cancel ()
 
 QCPSelectionRect (QCustomPlot *parentPlot)
 
virtual ~QCPSelectionRect ()
 
QRect rect () const
 
QCPRange range (const QCPAxis *axis) const
 
QPen pen () const
 
QBrush brush () const
 
bool isActive () const
 
void setPen (const QPen &pen)
 
void setBrush (const QBrush &brush)
 
Q_SLOT void cancel ()
 
- Public Member Functions inherited from QCPLayerable
 QCPLayerable (QCustomPlot *plot, QString targetLayer=QString(), QCPLayerable *parentLayerable=0)
 
virtual ~QCPLayerable ()
 
bool visible () const
 
QCustomPlotparentPlot () const
 
QCPLayerableparentLayerable () const
 
QCPLayerlayer () const
 
bool antialiased () const
 
void setVisible (bool on)
 
Q_SLOT bool setLayer (QCPLayer *layer)
 
bool setLayer (const QString &layerName)
 
void setAntialiased (bool enabled)
 
virtual double selectTest (const QPointF &pos, bool onlySelectable, QVariant *details=0) const
 
bool realVisibility () const
 
 QCPLayerable (QCustomPlot *plot, QString targetLayer=QString(), QCPLayerable *parentLayerable=0)
 
virtual ~QCPLayerable ()
 
bool visible () const
 
QCustomPlotparentPlot () const
 
QCPLayerableparentLayerable () const
 
QCPLayerlayer () const
 
bool antialiased () const
 
void setVisible (bool on)
 
Q_SLOT bool setLayer (QCPLayer *layer)
 
bool setLayer (const QString &layerName)
 
void setAntialiased (bool enabled)
 
virtual double selectTest (const QPointF &pos, bool onlySelectable, QVariant *details=0) const
 
bool realVisibility () const
 
 QCPLayerable (QCustomPlot *plot, QString targetLayer=QString(), QCPLayerable *parentLayerable=0)
 
virtual ~QCPLayerable ()
 
bool visible () const
 
QCustomPlotparentPlot () const
 
QCPLayerableparentLayerable () const
 
QCPLayerlayer () const
 
bool antialiased () const
 
void setVisible (bool on)
 
Q_SLOT bool setLayer (QCPLayer *layer)
 
bool setLayer (const QString &layerName)
 
void setAntialiased (bool enabled)
 
virtual double selectTest (const QPointF &pos, bool onlySelectable, QVariant *details=0) const
 
bool realVisibility () const
 
 QCPLayerable (QCustomPlot *plot, QString targetLayer=QString(), QCPLayerable *parentLayerable=0)
 
virtual ~QCPLayerable ()
 
bool visible () const
 
QCustomPlotparentPlot () const
 
QCPLayerableparentLayerable () const
 
QCPLayerlayer () const
 
bool antialiased () const
 
void setVisible (bool on)
 
Q_SLOT bool setLayer (QCPLayer *layer)
 
bool setLayer (const QString &layerName)
 
void setAntialiased (bool enabled)
 
virtual double selectTest (const QPointF &pos, bool onlySelectable, QVariant *details=0) const
 
bool realVisibility () const
 
 QCPLayerable (QCustomPlot *plot, QString targetLayer=QString(), QCPLayerable *parentLayerable=0)
 
virtual ~QCPLayerable ()
 
bool visible () const
 
QCustomPlotparentPlot () const
 
QCPLayerableparentLayerable () const
 
QCPLayerlayer () const
 
bool antialiased () const
 
void setVisible (bool on)
 
Q_SLOT bool setLayer (QCPLayer *layer)
 
bool setLayer (const QString &layerName)
 
void setAntialiased (bool enabled)
 
virtual double selectTest (const QPointF &pos, bool onlySelectable, QVariant *details=0) const
 
bool realVisibility () const
 

Protected Member Functions

virtual void startSelection (QMouseEvent *event)
 
virtual void moveSelection (QMouseEvent *event)
 
virtual void endSelection (QMouseEvent *event)
 
virtual void keyPressEvent (QKeyEvent *event)
 
virtual void applyDefaultAntialiasingHint (QCPPainter *painter) const Q_DECL_OVERRIDE
 
virtual void draw (QCPPainter *painter) Q_DECL_OVERRIDE
 
virtual void startSelection (QMouseEvent *event)
 
virtual void moveSelection (QMouseEvent *event)
 
virtual void endSelection (QMouseEvent *event)
 
virtual void keyPressEvent (QKeyEvent *event)
 
virtual void applyDefaultAntialiasingHint (QCPPainter *painter) const Q_DECL_OVERRIDE
 
virtual void draw (QCPPainter *painter) Q_DECL_OVERRIDE
 
virtual void startSelection (QMouseEvent *event)
 
virtual void moveSelection (QMouseEvent *event)
 
virtual void endSelection (QMouseEvent *event)
 
virtual void keyPressEvent (QKeyEvent *event)
 
virtual void applyDefaultAntialiasingHint (QCPPainter *painter) const Q_DECL_OVERRIDE
 
virtual void draw (QCPPainter *painter) Q_DECL_OVERRIDE
 
virtual void startSelection (QMouseEvent *event)
 
virtual void moveSelection (QMouseEvent *event)
 
virtual void endSelection (QMouseEvent *event)
 
virtual void keyPressEvent (QKeyEvent *event)
 
virtual void applyDefaultAntialiasingHint (QCPPainter *painter) const Q_DECL_OVERRIDE
 
virtual void draw (QCPPainter *painter) Q_DECL_OVERRIDE
 
virtual void startSelection (QMouseEvent *event)
 
virtual void moveSelection (QMouseEvent *event)
 
virtual void endSelection (QMouseEvent *event)
 
virtual void keyPressEvent (QKeyEvent *event)
 
virtual void applyDefaultAntialiasingHint (QCPPainter *painter) const Q_DECL_OVERRIDE
 
virtual void draw (QCPPainter *painter) Q_DECL_OVERRIDE
 
- Protected Member Functions inherited from QCPLayerable
virtual void parentPlotInitialized (QCustomPlot *parentPlot)
 
virtual QCP::Interaction selectionCategory () const
 
virtual QRect clipRect () const
 
virtual void selectEvent (QMouseEvent *event, bool additive, const QVariant &details, bool *selectionStateChanged)
 
virtual void deselectEvent (bool *selectionStateChanged)
 
virtual void mousePressEvent (QMouseEvent *event, const QVariant &details)
 
virtual void mouseMoveEvent (QMouseEvent *event, const QPointF &startPos)
 
virtual void mouseReleaseEvent (QMouseEvent *event, const QPointF &startPos)
 
virtual void mouseDoubleClickEvent (QMouseEvent *event, const QVariant &details)
 
virtual void wheelEvent (QWheelEvent *event)
 
void initializeParentPlot (QCustomPlot *parentPlot)
 
void setParentLayerable (QCPLayerable *parentLayerable)
 
bool moveToLayer (QCPLayer *layer, bool prepend)
 
void applyAntialiasingHint (QCPPainter *painter, bool localAntialiased, QCP::AntialiasedElement overrideElement) const
 
virtual void parentPlotInitialized (QCustomPlot *parentPlot)
 
virtual QCP::Interaction selectionCategory () const
 
virtual QRect clipRect () const
 
virtual void selectEvent (QMouseEvent *event, bool additive, const QVariant &details, bool *selectionStateChanged)
 
virtual void deselectEvent (bool *selectionStateChanged)
 
virtual void mousePressEvent (QMouseEvent *event, const QVariant &details)
 
virtual void mouseMoveEvent (QMouseEvent *event, const QPointF &startPos)
 
virtual void mouseReleaseEvent (QMouseEvent *event, const QPointF &startPos)
 
virtual void mouseDoubleClickEvent (QMouseEvent *event, const QVariant &details)
 
virtual void wheelEvent (QWheelEvent *event)
 
void initializeParentPlot (QCustomPlot *parentPlot)
 
void setParentLayerable (QCPLayerable *parentLayerable)
 
bool moveToLayer (QCPLayer *layer, bool prepend)
 
void applyAntialiasingHint (QCPPainter *painter, bool localAntialiased, QCP::AntialiasedElement overrideElement) const
 
virtual void parentPlotInitialized (QCustomPlot *parentPlot)
 
virtual QCP::Interaction selectionCategory () const
 
virtual QRect clipRect () const
 
virtual void selectEvent (QMouseEvent *event, bool additive, const QVariant &details, bool *selectionStateChanged)
 
virtual void deselectEvent (bool *selectionStateChanged)
 
virtual void mousePressEvent (QMouseEvent *event, const QVariant &details)
 
virtual void mouseMoveEvent (QMouseEvent *event, const QPointF &startPos)
 
virtual void mouseReleaseEvent (QMouseEvent *event, const QPointF &startPos)
 
virtual void mouseDoubleClickEvent (QMouseEvent *event, const QVariant &details)
 
virtual void wheelEvent (QWheelEvent *event)
 
void initializeParentPlot (QCustomPlot *parentPlot)
 
void setParentLayerable (QCPLayerable *parentLayerable)
 
bool moveToLayer (QCPLayer *layer, bool prepend)
 
void applyAntialiasingHint (QCPPainter *painter, bool localAntialiased, QCP::AntialiasedElement overrideElement) const
 
virtual void parentPlotInitialized (QCustomPlot *parentPlot)
 
virtual QCP::Interaction selectionCategory () const
 
virtual QRect clipRect () const
 
virtual void selectEvent (QMouseEvent *event, bool additive, const QVariant &details, bool *selectionStateChanged)
 
virtual void deselectEvent (bool *selectionStateChanged)
 
virtual void mousePressEvent (QMouseEvent *event, const QVariant &details)
 
virtual void mouseMoveEvent (QMouseEvent *event, const QPointF &startPos)
 
virtual void mouseReleaseEvent (QMouseEvent *event, const QPointF &startPos)
 
virtual void mouseDoubleClickEvent (QMouseEvent *event, const QVariant &details)
 
virtual void wheelEvent (QWheelEvent *event)
 
void initializeParentPlot (QCustomPlot *parentPlot)
 
void setParentLayerable (QCPLayerable *parentLayerable)
 
bool moveToLayer (QCPLayer *layer, bool prepend)
 
void applyAntialiasingHint (QCPPainter *painter, bool localAntialiased, QCP::AntialiasedElement overrideElement) const
 
virtual void parentPlotInitialized (QCustomPlot *parentPlot)
 
virtual QCP::Interaction selectionCategory () const
 
virtual QRect clipRect () const
 
virtual void selectEvent (QMouseEvent *event, bool additive, const QVariant &details, bool *selectionStateChanged)
 
virtual void deselectEvent (bool *selectionStateChanged)
 
virtual void mousePressEvent (QMouseEvent *event, const QVariant &details)
 
virtual void mouseMoveEvent (QMouseEvent *event, const QPointF &startPos)
 
virtual void mouseReleaseEvent (QMouseEvent *event, const QPointF &startPos)
 
virtual void mouseDoubleClickEvent (QMouseEvent *event, const QVariant &details)
 
virtual void wheelEvent (QWheelEvent *event)
 
void initializeParentPlot (QCustomPlot *parentPlot)
 
void setParentLayerable (QCPLayerable *parentLayerable)
 
bool moveToLayer (QCPLayer *layer, bool prepend)
 
void applyAntialiasingHint (QCPPainter *painter, bool localAntialiased, QCP::AntialiasedElement overrideElement) const
 

Protected Attributes

QRect mRect
 
QPen mPen
 
QBrush mBrush
 
bool mActive
 
- Protected Attributes inherited from QCPLayerable
bool mVisible
 
QCustomPlotmParentPlot
 
QPointer< QCPLayerablemParentLayerable
 
QCPLayermLayer
 
bool mAntialiased
 

Friends

class QCustomPlot
 

Detailed Description

Provides rect/rubber-band data selection and range zoom interaction.

QCPSelectionRect is used by QCustomPlot when the QCustomPlot::setSelectionRectMode is not QCP::srmNone. When the user drags the mouse across the plot, the current selection rect instance (QCustomPlot::setSelectionRect) is forwarded these events and makes sure an according rect shape is drawn. At the begin, during, and after completion of the interaction, it emits the corresponding signals started, changed, canceled, and accepted.

The QCustomPlot instance connects own slots to the current selection rect instance, in order to react to an accepted selection rect interaction accordingly.

isActive can be used to check whether the selection rect is currently active. An ongoing selection interaction can be cancelled programmatically via calling cancel at any time.

The appearance of the selection rect can be controlled via setPen and setBrush.

If you wish to provide custom behaviour, e.g. a different visual representation of the selection rect (QCPSelectionRect::draw), you can subclass QCPSelectionRect and pass an instance of your subclass to QCustomPlot::setSelectionRect.

Constructor & Destructor Documentation

QCPSelectionRect::QCPSelectionRect ( QCustomPlot parentPlot)
explicit

Creates a new QCPSelectionRect instance. To make QCustomPlot use the selection rect instance, pass it to QCustomPlot::setSelectionRect. parentPlot should be set to the same QCustomPlot widget.

QCPSelectionRect::~QCPSelectionRect ( )
virtual
QCPSelectionRect::QCPSelectionRect ( QCustomPlot parentPlot)
explicit
virtual QCPSelectionRect::~QCPSelectionRect ( )
virtual
QCPSelectionRect::QCPSelectionRect ( QCustomPlot parentPlot)
explicit
virtual QCPSelectionRect::~QCPSelectionRect ( )
virtual
QCPSelectionRect::QCPSelectionRect ( QCustomPlot parentPlot)
explicit
virtual QCPSelectionRect::~QCPSelectionRect ( )
virtual
QCPSelectionRect::QCPSelectionRect ( QCustomPlot parentPlot)
explicit
virtual QCPSelectionRect::~QCPSelectionRect ( )
virtual

Member Function Documentation

void QCPSelectionRect::accepted ( const QRect &  rect,
QMouseEvent *  event 
)
signal

This signal is emitted when the selection interaction was completed by the user releasing the mouse button.

Note that rect may have a negative width or height, if the selection is being dragged to the upper or left side of the selection rect origin.

void QCPSelectionRect::accepted ( const QRect &  rect,
QMouseEvent *  event 
)
signal
void QCPSelectionRect::accepted ( const QRect &  rect,
QMouseEvent *  event 
)
signal
void QCPSelectionRect::accepted ( const QRect &  rect,
QMouseEvent *  event 
)
signal
void QCPSelectionRect::accepted ( const QRect &  rect,
QMouseEvent *  event 
)
signal
void QCPSelectionRect::applyDefaultAntialiasingHint ( QCPPainter painter) const
protectedvirtual

Implements QCPLayerable.

virtual void QCPSelectionRect::applyDefaultAntialiasingHint ( QCPPainter painter) const
protectedvirtual

Implements QCPLayerable.

virtual void QCPSelectionRect::applyDefaultAntialiasingHint ( QCPPainter painter) const
protectedvirtual

Implements QCPLayerable.

virtual void QCPSelectionRect::applyDefaultAntialiasingHint ( QCPPainter painter) const
protectedvirtual

Implements QCPLayerable.

virtual void QCPSelectionRect::applyDefaultAntialiasingHint ( QCPPainter painter) const
protectedvirtual

Implements QCPLayerable.

QBrush QCPSelectionRect::brush ( ) const
inline
QBrush QCPSelectionRect::brush ( ) const
inline
QBrush QCPSelectionRect::brush ( ) const
inline
QBrush QCPSelectionRect::brush ( ) const
inline
QBrush QCPSelectionRect::brush ( ) const
inline
void QCPSelectionRect::cancel ( )

If there is currently a selection interaction going on (isActive), the interaction is canceled. The selection rect will emit the canceled signal.

Q_SLOT void QCPSelectionRect::cancel ( )
Q_SLOT void QCPSelectionRect::cancel ( )
Q_SLOT void QCPSelectionRect::cancel ( )
Q_SLOT void QCPSelectionRect::cancel ( )
void QCPSelectionRect::canceled ( const QRect &  rect,
QInputEvent *  event 
)
signal
void QCPSelectionRect::canceled ( const QRect &  rect,
QInputEvent *  event 
)
signal
void QCPSelectionRect::canceled ( const QRect &  rect,
QInputEvent *  event 
)
signal

This signal is emitted when the selection interaction was cancelled. Note that event is 0 if the selection interaction was cancelled programmatically, by a call to cancel.

The user may cancel the selection interaction by pressing the escape key. In this case, event holds the respective input event.

Note that rect may have a negative width or height, if the selection is being dragged to the upper or left side of the selection rect origin.

void QCPSelectionRect::canceled ( const QRect &  rect,
QInputEvent *  event 
)
signal
void QCPSelectionRect::canceled ( const QRect &  rect,
QInputEvent *  event 
)
signal
void QCPSelectionRect::changed ( const QRect &  rect,
QMouseEvent *  event 
)
signal
void QCPSelectionRect::changed ( const QRect &  rect,
QMouseEvent *  event 
)
signal
void QCPSelectionRect::changed ( const QRect &  rect,
QMouseEvent *  event 
)
signal

This signal is emitted while the selection rect interaction is ongoing and the rect has changed its size due to the user moving the mouse.

Note that rect may have a negative width or height, if the selection is being dragged to the upper or left side of the selection rect origin.

void QCPSelectionRect::changed ( const QRect &  rect,
QMouseEvent *  event 
)
signal
void QCPSelectionRect::changed ( const QRect &  rect,
QMouseEvent *  event 
)
signal
virtual void QCPSelectionRect::draw ( QCPPainter painter)
protectedvirtual

Implements QCPLayerable.

virtual void QCPSelectionRect::draw ( QCPPainter painter)
protectedvirtual

Implements QCPLayerable.

void QCPSelectionRect::draw ( QCPPainter painter)
protectedvirtual

Implements QCPLayerable.

virtual void QCPSelectionRect::draw ( QCPPainter painter)
protectedvirtual

Implements QCPLayerable.

virtual void QCPSelectionRect::draw ( QCPPainter painter)
protectedvirtual

Implements QCPLayerable.

virtual void QCPSelectionRect::endSelection ( QMouseEvent *  event)
protectedvirtual
virtual void QCPSelectionRect::endSelection ( QMouseEvent *  event)
protectedvirtual
virtual void QCPSelectionRect::endSelection ( QMouseEvent *  event)
protectedvirtual
virtual void QCPSelectionRect::endSelection ( QMouseEvent *  event)
protectedvirtual
void QCPSelectionRect::endSelection ( QMouseEvent *  event)
protectedvirtual
bool QCPSelectionRect::isActive ( ) const
inline

Returns true if there is currently a selection going on, i.e. the user has started dragging a selection rect, but hasn't released the mouse button yet.

See Also
cancel
bool QCPSelectionRect::isActive ( ) const
inline
bool QCPSelectionRect::isActive ( ) const
inline
bool QCPSelectionRect::isActive ( ) const
inline
bool QCPSelectionRect::isActive ( ) const
inline
virtual void QCPSelectionRect::keyPressEvent ( QKeyEvent *  event)
protectedvirtual
virtual void QCPSelectionRect::keyPressEvent ( QKeyEvent *  event)
protectedvirtual
void QCPSelectionRect::keyPressEvent ( QKeyEvent *  event)
protectedvirtual
virtual void QCPSelectionRect::keyPressEvent ( QKeyEvent *  event)
protectedvirtual
virtual void QCPSelectionRect::keyPressEvent ( QKeyEvent *  event)
protectedvirtual
virtual void QCPSelectionRect::moveSelection ( QMouseEvent *  event)
protectedvirtual
virtual void QCPSelectionRect::moveSelection ( QMouseEvent *  event)
protectedvirtual
virtual void QCPSelectionRect::moveSelection ( QMouseEvent *  event)
protectedvirtual
virtual void QCPSelectionRect::moveSelection ( QMouseEvent *  event)
protectedvirtual
void QCPSelectionRect::moveSelection ( QMouseEvent *  event)
protectedvirtual
QPen QCPSelectionRect::pen ( ) const
inline
QPen QCPSelectionRect::pen ( ) const
inline
QPen QCPSelectionRect::pen ( ) const
inline
QPen QCPSelectionRect::pen ( ) const
inline
QPen QCPSelectionRect::pen ( ) const
inline
QCPRange QCPSelectionRect::range ( const QCPAxis axis) const
QCPRange QCPSelectionRect::range ( const QCPAxis axis) const
QCPRange QCPSelectionRect::range ( const QCPAxis axis) const
QCPRange QCPSelectionRect::range ( const QCPAxis axis) const
QCPRange QCPSelectionRect::range ( const QCPAxis axis) const

A convenience function which returns the coordinate range of the provided axis, that this selection rect currently encompasses.

QRect QCPSelectionRect::rect ( ) const
inline
QRect QCPSelectionRect::rect ( ) const
inline
QRect QCPSelectionRect::rect ( ) const
inline
QRect QCPSelectionRect::rect ( ) const
inline
QRect QCPSelectionRect::rect ( ) const
inline
void QCPSelectionRect::setBrush ( const QBrush &  brush)

Sets the brush that will be used to fill the selection rect. By default the selection rect is not filled, i.e. brush is Qt::NoBrush.

See Also
setPen
void QCPSelectionRect::setBrush ( const QBrush &  brush)
void QCPSelectionRect::setBrush ( const QBrush &  brush)
void QCPSelectionRect::setBrush ( const QBrush &  brush)
void QCPSelectionRect::setBrush ( const QBrush &  brush)
void QCPSelectionRect::setPen ( const QPen &  pen)

Sets the pen that will be used to draw the selection rect outline.

See Also
setBrush
void QCPSelectionRect::setPen ( const QPen &  pen)
void QCPSelectionRect::setPen ( const QPen &  pen)
void QCPSelectionRect::setPen ( const QPen &  pen)
void QCPSelectionRect::setPen ( const QPen &  pen)
void QCPSelectionRect::started ( QMouseEvent *  event)
signal
void QCPSelectionRect::started ( QMouseEvent *  event)
signal
void QCPSelectionRect::started ( QMouseEvent *  event)
signal
void QCPSelectionRect::started ( QMouseEvent *  event)
signal
void QCPSelectionRect::started ( QMouseEvent *  event)
signal

This signal is emitted when a selection rect interaction was initiated, i.e. the user just started dragging the selection rect with the mouse.

virtual void QCPSelectionRect::startSelection ( QMouseEvent *  event)
protectedvirtual
virtual void QCPSelectionRect::startSelection ( QMouseEvent *  event)
protectedvirtual
virtual void QCPSelectionRect::startSelection ( QMouseEvent *  event)
protectedvirtual
virtual void QCPSelectionRect::startSelection ( QMouseEvent *  event)
protectedvirtual
void QCPSelectionRect::startSelection ( QMouseEvent *  event)
protectedvirtual

Friends And Related Function Documentation

QCustomPlot
friend

Member Data Documentation

bool QCPSelectionRect::mActive
protected
QBrush QCPSelectionRect::mBrush
protected
QPen QCPSelectionRect::mPen
protected
QRect QCPSelectionRect::mRect
protected

The documentation for this class was generated from the following files: