22 enum Shape { Line, Rectangle };
23 explicit QRubberBand(Shape, QWidget * =
nullptr);
28 void setGeometry(
const QRect &r);
30 inline void setGeometry(
int x,
int y,
int w,
int h);
31 inline void move(
int x,
int y);
32 inline void move(
const QPoint &p)
33 { move(p.x(), p.y()); }
34 inline void resize(
int w,
int h)
35 { setGeometry(geometry().x(), geometry().y(), w, h); }
36 inline void resize(
const QSize &s)
37 { resize(s.width(), s.height()); }
40 bool event(QEvent *e) override;
41 void paintEvent(QPaintEvent *) override;
42 void changeEvent(QEvent *) override;
43 void showEvent(QShowEvent *) override;
44 void resizeEvent(QResizeEvent *) override;
45 void moveEvent(QMoveEvent *) override;
46 virtual void initStyleOption(QStyleOptionRubberBand *option)
const;
49 Q_DECLARE_PRIVATE(QRubberBand)