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