97QRubberBand::QRubberBand(Shape s, QWidget *p)
98 : QWidget(*
new QRubberBandPrivate, p, Qt::Widget)
102 setAttribute(Qt::WA_TransparentForMouseEvents);
103 setAttribute(Qt::WA_NoSystemBackground);
104 setAttribute(Qt::WA_WState_ExplicitShowHide);
161void QRubberBand::paintEvent(QPaintEvent *)
163 QStylePainter painter(
this);
164 QStyleOptionRubberBand option;
165 initStyleOption(&option);
166 painter.drawControl(QStyle::CE_RubberBand, option);