3 ms·
Does this library support making "derived classes" from QObject/QWidget? And how does that work, in Go- are they interfaces?
by dekhn 10y ago
Does this library support making "derived classes" from QObject/QWidget? And how does that work, in Go- are they interfaces?
- therecipe 10y agoauthor 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.
- dekhn 10y agoThat's great!