kitech / qt.go

Qt binding for Go (Golang) aims get Go's compile speed again.
GNU Lesser General Public License v3.0
556 stars 35 forks source link

Sample code for custom models? #26

Open jschmidt opened 6 years ago

jschmidt commented 6 years ago

Is there a sample app or code snippet somewhere that illustrates how to set up something like a QListView with a model and proper signal handling?

LinesPrower commented 6 years ago

The project description declares "protected method override support". Is there any example of that?

kitech commented 6 years ago

w := qtwidgets.NewQWidget() w.InheritMousePressEvent(func(ev *qtgui.QMouseEvent) { })

override protected method: w.Inheritxxxx(func) it's works, although not look like as C++.