func (p *MyWidget) mouseReleaseEvent(e *qt5.MouseEvent) { p.line = append(p.line, e.Pos()) p.lines = append(p.lines, p.line) p.line = []qt5.Point{} p.Update() }
func (p *MyWidget) mouseMoveEvent(e *qt5.MouseEvent) { p.line = append(p.line, e.Pos()) p.Update() }