def paintEvent(self, event):
        painter = QPainter(self)
        opt = QStyleOption()
        opt.initFrom(self)
        self.style().drawPrimitive(QStyle.PE_Widget, opt, painter, self)
Handle the paint event for the dock rubber band.
dataset/ETHPy150Open ContinuumIO/ashiba/enaml/enaml/qt/docking/dock_overlay.py/QDockRubberBand.paintEvent