Re:Qt binding for Go with support for all major operating sy...
by dekhn on Friday November 11, 2016 @10:40AM
(#12931564)
Does this library support making "derived classes" from QObject/QWidget? And how does that work, in Go- are they interfaces?
[ Parent
| on HN ]
Re:Qt binding for Go with support for all major operating sy...
by therecipe on Friday November 11, 2016 @12:04PM
(#12932389)
author here;
Yes, you can create derived classes from any class that is derived from QObject.
Simple anonymously subclass in Go and add your own slots/signals, as shown in the "quick/bridge" and several other examples.
Then run "qtmoc" to generate the need c++ and go code. All functions usually accept interfaces and all classes have their corresponding interface, which itself inherits all the derived interfaces.