We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
`` package main
import ( "github.com/visualfc/goqt/ui" )
func main() { ui.Run(func() { w := ui.NewWidget() defer w.Show()
r := NewMyWidget() r.OnPaintEvent() })
}
type MyWidget struct { *ui.QWidget }
func NewMyWidget() *MyWidget { w := &MyWidget{} w.QWidget = ui.NewWidget() w.InstallEventFilter(w) return w }
func (w *MyWidget) OnPaintEvent(e *ui.QPaintEvent) bool { w.PaintEvent() //w.QWidget.PaintEvent()
painter := ui.NewPainterWithPaintDevice(w) defer painter.Delete() //painter.Draw ... return true
} ``
Errors: ./main.go:15: not enough arguments in call to r.OnPaintEvent ./main.go:31: not enough arguments in call to w.QWidget.PaintEvent
./main.go:15: not enough arguments in call to r.OnPaintEvent ./main.go:31: not enough arguments in call to w.QWidget.PaintEvent
Where to take the variable 'e' ?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
``
package main
import (
"github.com/visualfc/goqt/ui"
)
func main() {
ui.Run(func() {
w := ui.NewWidget()
defer w.Show()
}
type MyWidget struct {
*ui.QWidget
}
func NewMyWidget() *MyWidget {
w := &MyWidget{}
w.QWidget = ui.NewWidget()
w.InstallEventFilter(w)
return w
}
func (w *MyWidget) OnPaintEvent(e *ui.QPaintEvent) bool {
w.PaintEvent() //w.QWidget.PaintEvent()
}
``
Errors:
./main.go:15: not enough arguments in call to r.OnPaintEvent ./main.go:31: not enough arguments in call to w.QWidget.PaintEvent
Where to take the variable 'e' ?
The text was updated successfully, but these errors were encountered: