mirror of
https://github.com/mappu/miqt.git
synced 2025-02-01 19:10:21 +00:00
doc/README: add note about qt class inheritance
This commit is contained in:
parent
485bc0567a
commit
3aba55b9f9
@ -67,6 +67,8 @@ Where Qt returns a C++ object by value (e.g. `QSize`), the binding may have move
|
||||
|
||||
The `connect(sourceObject, sourceSignal, targetObject, targetSlot)` is projected as `targetObject.onSourceSignal(func()...)`.
|
||||
|
||||
Qt class inherited types are projected as a Go embedded struct. For example, to pass a `var myLabel *qt.QLabel` to a function taking only the `*qt.QWidget` base class, write `myLabel.QWidget`.
|
||||
|
||||
Some C++ idioms that were difficult to project were omitted from the binding. But, this can be improved in the future.
|
||||
|
||||
### Q7. How can I compile for Windows from a Linux host OS?
|
||||
|
Loading…
x
Reference in New Issue
Block a user