15#include <private/qwidget_p.h>
20#define RUBBERBAND_WINDOW_TYPE Qt::ToolTip
44 option->shape = d_func()->shape;
149 QStyleOptionRubberBand
opt;
150 q->initStyleOption(&
opt);
152 q->setMask(
mask.region);
164 QStyleOptionRubberBand
option;
285#include "moc_qrubberband.cpp"
Type type() const
Returns the event type.
void ignore()
Clears the accept flag parameter of the event object, the equivalent of calling setAccepted(false).
The QMoveEvent class contains event parameters for move events.
QObject * parent() const
Returns a pointer to the parent object.
The QPaintEvent class contains event parameters for paint events.
\inmodule QtCore\reentrant
The QRegion class specifies a clip region for a painter.
The QResizeEvent class contains event parameters for resize events.
The QRubberBand class provides a rectangle or line that can indicate a selection or a boundary.
Shape
This enum specifies what shape a QRubberBand should have.
void resizeEvent(QResizeEvent *) override
\reimp
virtual void initStyleOption(QStyleOptionRubberBand *option) const
Initialize option with the values from this QRubberBand.
void moveEvent(QMoveEvent *) override
\reimp
void paintEvent(QPaintEvent *) override
\reimp
bool event(QEvent *e) override
\reimp
Shape shape() const
Returns the shape of this rubber band.
void changeEvent(QEvent *) override
\reimp
void setGeometry(const QRect &r)
Sets the geometry of the rubber band to rect, specified in the coordinate system of its parent widget...
void showEvent(QShowEvent *) override
\reimp
~QRubberBand()
Destructor.
QRubberBand(Shape, QWidget *=nullptr)
Constructs a rubber band of shape s, with parent p.
The QShowEvent class provides an event that is sent when a widget is shown.
The QStyleHintReturnMask class provides style hints that return a QRegion.
The QStylePainter class is a convenience class for drawing QStyle elements inside a widget.
Combined button and popup list for selecting options.
@ WA_WState_ExplicitShowHide
@ WA_TransparentForMouseEvents
GLint GLint GLint GLint GLint GLint GLint GLbitfield mask
GLdouble GLdouble GLdouble GLdouble q
#define RUBBERBAND_WINDOW_TYPE