Example #1
0
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()
}
Example #2
0
func (p *MyWidget) mouseMoveEvent(e *qt5.MouseEvent) {
	p.line = append(p.line, e.Pos())
	p.Update()
}